From 1bb74a38c014136ffd722eceea9b0ed350701d17 Mon Sep 17 00:00:00 2001 From: Neargye Date: Fri, 4 May 2018 01:10:32 +0500 Subject: [PATCH] update example --- example/example.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/example/example.cpp b/example/example.cpp index d1c7d2e..4702864 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -117,5 +117,17 @@ int main() { std::cout << NAMEOF(main) << " method entry" << std::endl; // main method entry + /* Remarks */ + + // Spaces and Tabs ignored + std::cout << NAMEOF( std::string ) << std::endl; // string + std::cout << NAMEOF( std::string ) << std::endl; // string + + // Bad case + std::cout << NAMEOF(std::string()) << std::endl; // string() + std::cout << NAMEOF(std::string{}) << std::endl; // string{} + std::cout << NAMEOF(std::string{"test"}) << std::endl; // string{"test"} + std::cout << NAMEOF(ptrvar[0]) << std::endl; // ptrvar[0] + return 0; }