Is it possible to disable GCC warning about missing underscore in user defined literal?
问题 void operator"" test( const char* str, size_t sz ) { std::cout<<str<<" world"; } int main() { "hello"test; return 0; } In GCC 4.7, this generates "warning: literal operator suffixes not preceded by '_' are reserved for future standardization [enabled by default]" I understand why this warning is generated, but GCC says "enabled by default". Is it possible to disable this warning without just disabling all warnings via the -w flag? 回答1: After reading several comments to this question, I