diff --git a/nameof.cpp b/nameof.cpp index 8ba5815..e8089c9 100644 --- a/nameof.cpp +++ b/nameof.cpp @@ -60,10 +60,13 @@ int main() { constexpr auto d = nameof_variable(::someVar); constexpr auto e = nameof_variable(&SomeStruct::SomeMethod); constexpr auto f = nameof_function(someVar.SomeMethod()); + constexpr auto g = nameof_type(SomeStruct); + std::cout << a << std::endl; // SomeField std::cout << b << std::endl; // SomeField std::cout << c << std::endl; // someVar std::cout << d << std::endl; // someVar std::cout << e << std::endl; // SomeMethod std::cout << f << std::endl; // SomeMethod() + std::cout << g << std::endl; // SomeStruct } \ No newline at end of file