Last active
November 30, 2016 12:23
-
-
Save hatsusato/8da16ee776fd2425a6691a1fdd80c9a1 to your computer and use it in GitHub Desktop.
Show exact type infomation.
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 <boost/type_index.hpp> | |
#include <iostream> | |
#define SHOW_TYPE(x) boost::typeindex::type_id_with_cvr<decltype(x)>().pretty_name() | |
int main() { | |
std::cout << SHOW_TYPE(main) << std::endl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment