File: check-compiler-features.cpp

package info (click to toggle)
actor-framework 0.18.7-1~exp1
  • links: PTS
  • area: main
  • in suites: experimental
  • size: 8,740 kB
  • sloc: cpp: 85,162; sh: 491; python: 187; makefile: 11
file content (19 lines) | stat: -rw-r--r-- 557 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef __cpp_noexcept_function_type
#  error "Noexcept not part of the type system (__cpp_noexcept_function_type)"
#endif

#ifndef __cpp_fold_expressions
#  error "No support for fold expression (__cpp_fold_expressions)"
#endif

#ifndef __cpp_if_constexpr
#  error "No support for 'if constexpr' (__cpp_if_constexpr)"
#endif

// Unfortunately there's no feature test macro for thread_local. By putting this
// here, at least we'll get a compiler error on unsupported platforms.
[[maybe_unused]] thread_local int foo;

int main(int, char**) {
  return 0;
}