From 82f18f24050f2b61760867131902fd62b6e12ca3 Mon Sep 17 00:00:00 2001 From: Neargye Date: Fri, 13 Jul 2018 20:27:55 +0500 Subject: [PATCH] clean-up example --- example/example.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/example/example.cpp b/example/example.cpp index 270fc08..89d2546 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -73,37 +73,37 @@ int main() { // constexpr constexpr auto constexpr_work_fine = NAMEOF(intvar); std::cout << constexpr_work_fine << std::endl; // intvar + // enum std::cout << NAMEOF(Color::RED) << std::endl; // RED + // variable std::cout << NAMEOF(somevar) << std::endl; // somevar std::cout << NAMEOF(::somevar) << std::endl; // somevar std::cout << NAMEOF(&somevar) << std::endl; // somevar + // member std::cout << NAMEOF(somevar.somefield) << std::endl; // somefield std::cout << NAMEOF((&somevar)->somefield) << std::endl; // somefield - // member std::cout << NAMEOF(othervar.ll.field) << std::endl; // field + // variable std::cout << NAMEOF(ptrvar) << std::endl; // ptrvar std::cout << NAMEOF(*ptrvar) << std::endl; // ptrvar - // variable std::cout << NAMEOF(ptrptrvar) << std::endl; // ptrptrvar std::cout << NAMEOF(*ptrptrvar) << std::endl; // ptrptrvar std::cout << NAMEOF(**ptrptrvar) << std::endl; // ptrptrvar - // variable - std::cout << NAMEOF(+intvar) << std::endl; // intvar - std::cout << NAMEOF(-intvar) << std::endl; // intvar - std::cout << NAMEOF(~intvar) << std::endl; // intvar - std::cout << NAMEOF(!intvar) << std::endl; // intvar + // function std::cout << NAMEOF(&SomeStruct::SomeMethod2) << std::endl; // SomeMethod2 std::cout << NAMEOF(SomeMethod3) << std::endl; // SomeMethod3 + // type std::cout << NAMEOF(int[]) << std::endl; // int[] std::cout << NAMEOF(SomeStruct) << std::endl; // SomeStruct std::cout << NAMEOF(Long::LL) << std::endl; // LL std::cout << NAMEOF(volatile const int) << std::endl; // volatile const int + // macros std::cout << NAMEOF(__LINE__) << std::endl; // __LINE__ std::cout << NAMEOF(__FILE__) << std::endl; // __FILE__