variant.hpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // Copyright (c) 2022 Vinnie Falco (vinnie.falco@gmail.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. // Official repository: https://github.com/boostorg/url
  8. //
  9. #ifndef BOOST_URL_VARIANT_HPP
  10. #define BOOST_URL_VARIANT_HPP
  11. #include <boost/url/detail/config.hpp>
  12. #include <boost/variant2/variant.hpp>
  13. namespace boost {
  14. namespace urls {
  15. /** The type of variant used by the library
  16. @warning This alias is no longer supported and
  17. should not be used in new code. Please use
  18. `boost::variant2::variant` instead.
  19. This alias is included for backwards
  20. compatibility with earlier versions of the
  21. library.
  22. However, it will be removed in future releases,
  23. and using it in new code is not recommended.
  24. Please use the updated version instead to
  25. ensure compatibility with future versions of
  26. the library.
  27. */
  28. template<class... Ts>
  29. using variant
  30. BOOST_URL_DEPRECATED("Use variant2::variant instead") =
  31. boost::variant2::variant<Ts...>;
  32. } // urls
  33. } // boost
  34. #endif