config.hpp 601 B

123456789101112131415161718192021222324
  1. //
  2. // Copyright (c) 2019-2023 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
  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. //
  7. #ifndef BOOST_MYSQL_DETAIL_CONFIG_HPP
  8. #define BOOST_MYSQL_DETAIL_CONFIG_HPP
  9. // clang-format off
  10. #if defined(__has_include)
  11. #if __has_include(<version>)
  12. #include <version>
  13. #if defined(__cpp_concepts) && defined(__cpp_lib_concepts)
  14. #define BOOST_MYSQL_HAS_CONCEPTS
  15. #endif
  16. #endif
  17. #endif
  18. // clang-format on
  19. #endif