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