From ec5098d3761e4b39d8843a91be5dce9f63b5e526 Mon Sep 17 00:00:00 2001 From: Neargye Date: Fri, 4 May 2018 01:20:04 +0500 Subject: [PATCH] update bad case --- example/example.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/example/example.cpp b/example/example.cpp index 4702864..c8b7c6e 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -124,10 +124,13 @@ int main() { 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] + 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]" + std::cout << NAMEOF(intvar + intvar) << std::endl; // " intvar" + std::cout << NAMEOF(NAMEOF(intvar)) << std::endl; // "NAMEOF(intvar)" + std::cout << NAMEOF(std::cout << intvar << std::endl) << std::endl; // "endl" return 0; }