Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:42:08

0001 // clang-format off
0002 #if HIGHFIVE_XTENSOR_HEADER_VERSION == 0
0003   #if __cplusplus >= 201703L
0004     #if __has_include(<xtensor/xtensor.hpp>)
0005       #define HIGHFIVE_XTENSOR_HEADER_VERSION 1
0006     #elif __has_include(<xtensor/containers/xtensor.hpp>)
0007       #define HIGHFIVE_XTENSOR_HEADER_VERSION 2
0008     #else
0009       #error "Unable to guess HIGHFIVE_XTENSOR_HEADER_VERSION. Please set manually."
0010     #endif
0011   #elif __cplusplus == 201402L
0012     // XTensor 0.26 and newer require C++17. Hence, if we have C++14, only
0013     // `HIGHFIVE_XTENSOR_HEADER_VERSION == 1` makes sense.
0014     #define HIGHFIVE_XTENSOR_HEADER_VERSION 1
0015   #elif defined(_MSC_VER) && __cplusplus == 199711L
0016     #error \
0017       "Use /Zc:__cplusplus to make MSVC set __cplusplus correctly or HIGHFIVE_XTENSOR_HEADER_VERSION to skip xtensor version deduction."
0018   #else
0019     #error "HighFive requires C++14 or newer."
0020   #endif
0021 #endif
0022 // clang-format on