default_delete.hpp 824 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Copyright (C) 2013 Vicente J. Botet Escriba
  2. //
  3. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. //
  6. // 2013/10 Vicente J. Botet Escriba
  7. // Creation.
  8. #ifndef BOOST_CSBL_MEMORY_DEFAULT_DELETE_HPP
  9. #define BOOST_CSBL_MEMORY_DEFAULT_DELETE_HPP
  10. #include <boost/thread/csbl/memory/config.hpp>
  11. // 20.8.1 class template unique_ptr:
  12. // default_delete
  13. #if defined BOOST_NO_CXX11_SMART_PTR
  14. #include <boost/move/unique_ptr.hpp>
  15. namespace boost
  16. {
  17. namespace csbl
  18. {
  19. using ::boost::movelib::default_delete;
  20. }
  21. }
  22. #else
  23. namespace boost
  24. {
  25. namespace csbl
  26. {
  27. using ::std::default_delete;
  28. }
  29. }
  30. #endif // defined BOOST_NO_CXX11_SMART_PTR
  31. namespace boost
  32. {
  33. using ::boost::csbl::default_delete;
  34. }
  35. #endif // header