39 lines
1.4 KiB
C++
39 lines
1.4 KiB
C++
// Copyright (c) 2016-2023 Antony Polukhin
|
|
//
|
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
#include <boost/pfr/config.hpp> // inclusion of an another PFR header may fail when BOOST_PFR_ENABLED=0
|
|
|
|
#include <iostream>
|
|
|
|
int main() {
|
|
std::cout << "Platform info:" << '\n'
|
|
<< "BOOST_PFR_USE_CPP17 == " << BOOST_PFR_USE_CPP17 << '\n'
|
|
<< "BOOST_PFR_USE_LOOPHOLE == " << BOOST_PFR_USE_LOOPHOLE << '\n'
|
|
<< "BOOST_PFR_USE_STD_MAKE_INTEGRAL_SEQUENCE == " << BOOST_PFR_USE_STD_MAKE_INTEGRAL_SEQUENCE << '\n'
|
|
<< "BOOST_PFR_HAS_GUARANTEED_COPY_ELISION == " << BOOST_PFR_HAS_GUARANTEED_COPY_ELISION << '\n'
|
|
<< "BOOST_PFR_ENABLE_IMPLICIT_REFLECTION == " << BOOST_PFR_ENABLE_IMPLICIT_REFLECTION << '\n'
|
|
<< "BOOST_PFR_ENABLED == " << BOOST_PFR_ENABLED << '\n'
|
|
<< "__cplusplus == " << __cplusplus << '\n'
|
|
#ifdef __cpp_structured_bindings
|
|
<< "__cpp_structured_bindings == " << __cpp_structured_bindings << '\n'
|
|
#endif
|
|
#ifdef _MSC_VER
|
|
<< "_MSC_VER == " << _MSC_VER << '\n'
|
|
#endif
|
|
#ifdef _MSVC_LANG
|
|
<< "_MSVC_LANG == " << _MSVC_LANG << '\n'
|
|
#endif
|
|
#ifdef __GLIBCXX__
|
|
<< "__GLIBCXX__ == " << __GLIBCXX__ << '\n'
|
|
#endif
|
|
#ifdef __GNUC__
|
|
<< "__GNUC__ == " << __GNUC__ << '\n'
|
|
#endif
|
|
#ifdef __clang_major__
|
|
<< "__clang_major__ == " << __clang_major__ << '\n'
|
|
#endif
|
|
;
|
|
}
|