source/CompilationDetails.cpp
// Get the compiler used to compile the binary.
Get the compiler used to compile the binary.
Get the compiler used to compile the binary .
string CompilationDetails::get_compiler() const
{
  ostringstream compiler_details;
  #ifdef _MSC_VER
  compiler_details << "MSVC " << _MSC_VER;
  #elif defined(__GNUC__)
  compiler_details << "GCC " << __GNUC__ << "." << __GNUC_MINOR__ << "." << __GNUC_PATCHLEVEL__;
  #else
  static_assert(false, "Unrecognized compiler.");
  #endif
  return compiler_details.str();
}
string CompilationDetails :: get_compiler ( ) const { ostringstream compiler_details ; #ifdef _MSC_VER compiler_details << " " << _MSC_VER ; #elif defined ( __GNUC__ ) compiler_details << " " << __GNUC__ << " " << __GNUC_MINOR__ << " " << __GNUC_PATCHLEVEL__ ; #else static_assert ( false , " " ) ; #endif return compiler_details . str ( ) ; }
Get the compiler used to compile the binary.
Get the compiler used to compile the binary .
// This needs to be filled in when porting to use gcc/etc