config.hpp 1008 B

1234567891011121314151617181920212223242526
  1. // Copyright (c) 2016-2024 Antony Polukhin
  2. // Copyright (c) 2022 Denis Mikhailov
  3. //
  4. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. #ifndef BOOST_PFR_DETAIL_CONFIG_HPP
  7. #define BOOST_PFR_DETAIL_CONFIG_HPP
  8. #pragma once
  9. #include <boost/pfr/config.hpp>
  10. #if !BOOST_PFR_ENABLED
  11. #error Boost.PFR library is not supported in your environment. \
  12. Try one of the possible solutions: \
  13. 1. try to take away an '-DBOOST_PFR_ENABLED=0', if it exists \
  14. 2. enable C++14; \
  15. 3. enable C++17; \
  16. 4. update your compiler; \
  17. or disable this error by '-DBOOST_PFR_ENABLED=1' if you really know what are you doing.
  18. #endif // !BOOST_PFR_ENABLED
  19. #endif // BOOST_PFR_DETAIL_CONFIG_HPP