fmt/test/cuda-test/cpp14.cc
luncliff ba82f542d6 test cuda: import fmt in CUDA source code
Current test is only for Windows(cl.exe).
Need to test more with the other host compilers...

* Activate the test when `find_package(CUDA)` worked
* The test runs with C++14

Detailed comments in 'test/cuda-test'
2019-08-28 09:58:37 +00:00

9 lines
200 B
C++

#include <fmt/core.h>
static_assert(__cplusplus >= 201402L, "expect C++ 2014");
auto make_message_cpp() -> std::string{
return fmt::format("host compiler\t: __cplusplus == {}", __cplusplus);
}