header_deprecated_test.cpp 533 B

123456789101112131415161718
  1. // Copyright 2017 Peter Dimov.
  2. //
  3. // Distributed under the Boost Software License, Version 1.0.
  4. //
  5. // See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt
  7. #include <boost/config/header_deprecated.hpp>
  8. BOOST_HEADER_DEPRECATED("<boost/config/workaround.hpp>")
  9. #define ALTERNATIVE "the suitable component header"
  10. BOOST_HEADER_DEPRECATED(ALTERNATIVE)
  11. #include <boost/config.hpp> // BOOST_STRINGIZE
  12. #define HEADER <boost/config/workaround.hpp>
  13. BOOST_HEADER_DEPRECATED(BOOST_STRINGIZE(HEADER))