From 7b1ab54651e006162835f3f94252e2b7d908f3dc Mon Sep 17 00:00:00 2001 From: Terik23 Date: Sat, 17 Mar 2018 08:35:15 +0500 Subject: [PATCH] --- nameof.cpp | 3 +++ 1 file changed, 3 insertions(+) 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