Skip to content

Instantly share code, notes, and snippets.

@alibitek
Created February 16, 2016 10:28
Show Gist options
  • Save alibitek/b2b4d3102b3f3e7840f9 to your computer and use it in GitHub Desktop.
Save alibitek/b2b4d3102b3f3e7840f9 to your computer and use it in GitHub Desktop.
Test pretty function __PRETTY_FUNCTION__
#include <iostream>
using namespace std;
namespace X { struct F { static void f() { cout << __PRETTY_FUNCTION__; } }; }
// Clang: static void X::F::f()
// GCC: static void X::F::f()
int main() { X::F::f(); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment