File: cpp14.cc

package info (click to toggle)
mkvtoolnix 74.0.0-1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 55,444 kB
  • sloc: cpp: 209,827; ruby: 11,193; xml: 7,963; ansic: 7,922; sh: 4,769; python: 1,104; perl: 191; makefile: 111; awk: 16; javascript: 2
file content (11 lines) | stat: -rw-r--r-- 418 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
#include <fmt/core.h>

// The purpose of this part is to ensure NVCC's host compiler also supports
// the standard version. See 'cuda-cpp14.cu'.
//
// https://en.cppreference.com/w/cpp/preprocessor/replace#Predefined_macros
static_assert(__cplusplus >= 201402L, "expect C++ 2014 for host compiler");

auto make_message_cpp() -> std::string {
  return fmt::format("host compiler \t: __cplusplus == {}", __cplusplus);
}