if (enable_model-checking AND (NOT ("cxx_std_14" IN_LIST known_features)))
message(WARNING "C++14 not found. The model-checker will use a slow hash function. You should upgrade your compiler")
- set(SG_HAVE_CPP14 0)
else()
- set(SG_HAVE_CPP14 1)
set_property(TARGET simgrid PROPERTY CXX_STANDARD 14)
endif()
#include "xbt/log.h"
#include "xbt/sysdep.h"
-#ifdef SG_HAVE_CPP14
+#if __cplusplus >= 201402L
#include "src/include/xxhash.hpp"
#endif
#include "src/mc/mc_mmu.hpp"
*/
static XBT_ALWAYS_INLINE PageStore::hash_type mc_hash_page(const void* data)
{
-#ifdef SG_HAVE_CPP14
+#ifdef __cplusplus >= 201402L
return xxh::xxhash<64>(data, xbt_pagesize);
#else
const std::uint64_t* values = (const uint64_t*)data;