From 53310d1ea0acfc9f514e71362f70729d5bf27f8c Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 8 Jan 2017 14:07:18 -0500 Subject: [PATCH] CmdDiagnostics: Uses libshared cppCompliance call --- src/commands/CmdDiagnostics.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/commands/CmdDiagnostics.cpp b/src/commands/CmdDiagnostics.cpp index 30dc1fcce..03c9faa66 100644 --- a/src/commands/CmdDiagnostics.cpp +++ b/src/commands/CmdDiagnostics.cpp @@ -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)