empty_deleter.hpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright Andrey Semashev 2007 - 2013.
  3. * Distributed under the Boost Software License, Version 1.0.
  4. * (See accompanying file LICENSE_1_0.txt or copy at
  5. * http://www.boost.org/LICENSE_1_0.txt)
  6. */
  7. /*!
  8. * \file empty_deleter.hpp
  9. * \author Andrey Semashev
  10. * \date 22.04.2007
  11. *
  12. * This header is deprecated, use boost/utility/empty_deleter.hpp instead. The header is left for
  13. * backward compatibility and will be removed in future versions.
  14. */
  15. #ifndef BOOST_LOG_UTILITY_EMPTY_DELETER_HPP_INCLUDED_
  16. #define BOOST_LOG_UTILITY_EMPTY_DELETER_HPP_INCLUDED_
  17. #include <boost/utility/empty_deleter.hpp>
  18. #include <boost/log/detail/config.hpp>
  19. #ifdef BOOST_HAS_PRAGMA_ONCE
  20. #pragma once
  21. #endif
  22. #if defined(__GNUC__)
  23. #pragma message "Boost.Log: This header is deprecated, use boost/utility/empty_deleter.hpp instead."
  24. #elif defined(_MSC_VER)
  25. #pragma message("Boost.Log: This header is deprecated, use boost/utility/empty_deleter.hpp instead.")
  26. #endif
  27. namespace boost {
  28. BOOST_LOG_OPEN_NAMESPACE
  29. using boost::empty_deleter;
  30. BOOST_LOG_CLOSE_NAMESPACE // namespace log
  31. } // namespace boost
  32. #endif // BOOST_LOG_UTILITY_EMPTY_DELETER_HPP_INCLUDED_