CmdDiagnostics: Uses libshared cppCompliance call

This commit is contained in:
Paul Beckingham 2017-01-08 14:07:18 -05:00
parent 12e30bf969
commit 53310d1ea0

View file

@ -119,19 +119,9 @@ int CmdDiagnostics::execute (std::string& output)
<< '\n';
// Compiler compliance level.
std::string compliance = "non-compliant";
#ifdef __cplusplus
int level = __cplusplus;
if (level == 199711)
compliance = "C++98/03";
else if (level == 201103)
compliance = "C++11";
else
compliance = format (level);
#endif
out << ' ' << STRING_CMD_DIAG_COMPLIANCE
<< ": "
<< compliance
<< cppCompliance ()
<< "\n\n";
out << bold.colorize (STRING_CMD_DIAG_FEATURES)