config.hpp 996 B

1234567891011121314151617181920212223242526
  1. // Copyright (c) 2016-2023 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 BHO_PFR_DETAIL_CONFIG_HPP
  7. #define BHO_PFR_DETAIL_CONFIG_HPP
  8. #pragma once
  9. #include <asio2/bho/pfr/config.hpp>
  10. #if !BHO_PFR_ENABLED
  11. #error BHO.PFR library is not supported in your environment. \
  12. Try one of the possible solutions: \
  13. 1. try to take away an '-DBHO_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 '-DBHO_PFR_ENABLED=1' if you really know what are you doing.
  18. #endif // !BHO_PFR_ENABLED
  19. #endif // BHO_PFR_DETAIL_CONFIG_HPP