git repos / blockattack-game

blame: source/misc/embedded_libs/fmt-8.1.1/test/cuda-test/cpp14.cc

normal view · raw

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