15 return std::to_string(__GNUC__) +
'.' + std::to_string(__GNUC_MINOR__) +
'.' + std::to_string(__GNUC_PATCHLEVEL__);
26#if __cplusplus == 199711L
28#elif __cplusplus == 201103L
30#elif __cplusplus == 201402L
32#elif __cplusplus == 201703L
34#elif __cplusplus == 202002L
36#elif __cplusplus == 202302L
39 return "Unknown C++ standard";
#define _MISC_FUNC
Definition misc/global.h:39
Definition Application.h:10
std::string getGCCVersion()
Gets the GNU compiler version.
Definition version.h:12
_MISC_FUNC std::string_view getCpuArchitecture()
Gets the CPU architecture returned from 'uname -m' command.
std::string_view getCppStandard()
Gets the C++ standard used.
Definition version.h:24
_MISC_FUNC std::string getOSVersion()
Gets the OS and version used.