cpp14.cc 418 B

1234567891011
  1. #include <fmt/core.h>
  2. // The purpose of this part is to ensure NVCC's host compiler also supports
  3. // the standard version. See 'cuda-cpp14.cu'.
  4. //
  5. // https://en.cppreference.com/w/cpp/preprocessor/replace#Predefined_macros
  6. static_assert(__cplusplus >= 201402L, "expect C++ 2014 for host compiler");
  7. auto make_message_cpp() -> std::string {
  8. return fmt::format("host compiler \t: __cplusplus == {}", __cplusplus);
  9. }