• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2016-2021 Antony Polukhin
2 //
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5 
6 #include <boost/pfr/core.hpp>
7 
8 #include <iostream>
9 
main()10 int main() {
11     std::cout << "Platform info:" << '\n'
12         << "BOOST_PFR_USE_CPP17 == " << BOOST_PFR_USE_CPP17 << '\n'
13         << "BOOST_PFR_USE_LOOPHOLE == " << BOOST_PFR_USE_LOOPHOLE << '\n'
14         << "BOOST_PFR_USE_STD_MAKE_INTEGRAL_SEQUENCE == " << BOOST_PFR_USE_STD_MAKE_INTEGRAL_SEQUENCE << '\n'
15         << "__cplusplus == " << __cplusplus << '\n'
16 #ifdef __cpp_structured_bindings
17         << "__cpp_structured_bindings == " << __cpp_structured_bindings << '\n'
18 #endif
19 #ifdef _MSC_VER
20         << "_MSC_VER == " << _MSC_VER << '\n'
21 #endif
22 #ifdef _MSVC_LANG
23         << "_MSVC_LANG == " << _MSVC_LANG << '\n'
24 #endif
25 #ifdef __GLIBCXX__
26         << "__GLIBCXX__ == " << __GLIBCXX__ << '\n'
27 #endif
28 #ifdef __GNUC__
29         << "__GNUC__ == " << __GNUC__ << '\n'
30 #endif
31 #ifdef __clang_major__
32         << "__clang_major__ == " << __clang_major__ << '\n'
33 #endif
34     ;
35 }
36