cppx-core
assert-c++17-or-later.hpp
Go to the documentation of this file.
1 #pragma once // Source encoding: UTF-8 with BOM (π is a lowercase Greek "pi").
2 #if __cplusplus < 201703L
3  static_assert( __cplusplus >= 201703L,
4  "Requires C++17 or later. For MSVC use e.g. `/std:c++17 /Zc:__cplusplus /utf-8`."
5  // https://blogs.msdn.microsoft.com/vcblog/2018/04/09/msvc-now-correctly-reports-__cplusplus/
6  );
7 # include <C++17-or-later-is-required>
8 #endif