update example

This commit is contained in:
Neargye 2018-05-04 01:10:32 +05:00
parent f746b5c69e
commit 1bb74a38c0

View file

@ -117,5 +117,17 @@ int main() {
std::cout << NAMEOF(main) << " method entry" << std::endl; // main method entry 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; return 0;
} }