Created
February 16, 2016 10:28
-
-
Save alibitek/b2b4d3102b3f3e7840f9 to your computer and use it in GitHub Desktop.
Test pretty function __PRETTY_FUNCTION__
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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