ModernCpp Snippets helpful for understanding Modern C++ Tricks Print the typename of an object in compile time static_assert(decltype(tt)::dummy_error, "DUMP MY TYPE" );