Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
SO typeindex pretty_name
#include <boost/type_index.hpp> #include <iostream> class MyObject { public: virtual ~MyObject() {} }; struct Derived : MyObject {}; int main() { MyObject o; Derived d; std::cout << boost::typeindex::type_id<MyObject>().pretty_name() << "\n"; std::cout << boost::typeindex::type_id<Derived>().pretty_name() << "\n"; MyObject& r = d; std::cout << boost::typeindex::type_id_runtime(r).pretty_name() << "\n"; }
run
|
edit
|
history
|
help
0
primitive type copy constructor
Spirit Lex combining token_id's with semantic actions
Regex success
0004
list multiply
RVO hota hai bhenchod
ADL of operator expression & unqualified function call
error_check
Hangman
std::is_same doesn't check for calling convention