shared_ptr.hpp 789 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // Copyright (C) 2014 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. // 2014/10 Vicente J. Botet Escriba
  7. // Creation.
  8. #ifndef BOOST_CSBL_MEMORY_SHARED_PTR_HPP
  9. #define BOOST_CSBL_MEMORY_SHARED_PTR_HPP
  10. #include <boost/thread/csbl/memory/config.hpp>
  11. #if defined BOOST_NO_CXX11_SMART_PTR
  12. #include <boost/smart_ptr/shared_ptr.hpp>
  13. #include <boost/smart_ptr/make_shared.hpp>
  14. namespace boost
  15. {
  16. namespace csbl
  17. {
  18. using ::boost::shared_ptr;
  19. using ::boost::make_shared;
  20. }
  21. }
  22. #else
  23. #include <boost/shared_ptr.hpp>
  24. namespace boost
  25. {
  26. namespace csbl
  27. {
  28. using std::shared_ptr;
  29. using std::make_shared;
  30. }
  31. }
  32. #endif
  33. #endif // header