Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Check C++ standard in xbt/base.h.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 6 Oct 2020 13:32:23 +0000 (15:32 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 6 Oct 2020 13:32:23 +0000 (15:32 +0200)
ChangeLog
include/xbt/base.h

index 4bcc2e7..a2e17e2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -40,6 +40,7 @@ C binding:
 
 General:
  - Require a compiler with C++14 support.
+   Take care to upgrade FindSimgrid.cmake if it's used.
  - LTO is now enabled for Intel/clang compilers.
  - LTO behavior on GCC can be parameterized using LTO_EXTRA_FLAG in cmake.
    Setting it to "auto" will use all available cores, while setting it to n will
index 8d6b05d..860fdf0 100644 (file)
 #endif
 
 #if defined(__cplusplus)
-#if __cplusplus >= 201103L
-#define XBT_ATTRIB_NORETURN [[noreturn]]
+#if __cplusplus < 201402L
+#error C++14 support is needed.  Please upgrade your compiler and/or fix your compilation flags.
 #endif
+#define XBT_ATTRIB_NORETURN [[noreturn]]
 #if __cplusplus >= 201703L
 #define XBT_ATTRIB_UNUSED [[maybe_unused]]
 #endif
-#if __cplusplus >= 201402L
 #define XBT_ATTRIB_DEPRECATED(mesg) [[deprecated(mesg)]]
-#endif
 #elif defined(__STDC_VERSION__)
 #if __STDC_VERSION__ >= 201112L
 #define XBT_ATTRIB_NORETURN _Noreturn