sp_counted_base.hpp 780 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef BOOST_SMART_PTR_DETAIL_SP_COUNTED_BASE_HPP_INCLUDED
  2. #define BOOST_SMART_PTR_DETAIL_SP_COUNTED_BASE_HPP_INCLUDED
  3. // MS compatible compilers support #pragma once
  4. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  5. # pragma once
  6. #endif
  7. //
  8. // detail/sp_counted_base.hpp
  9. //
  10. // Copyright 2005-2013 Peter Dimov
  11. //
  12. // Distributed under the Boost Software License, Version 1.0. (See
  13. // accompanying file LICENSE_1_0.txt or copy at
  14. // http://www.boost.org/LICENSE_1_0.txt)
  15. //
  16. #include <boost/smart_ptr/detail/deprecated_macros.hpp>
  17. #if defined( BOOST_SP_DISABLE_THREADS )
  18. # include <boost/smart_ptr/detail/sp_counted_base_nt.hpp>
  19. #else
  20. # include <boost/smart_ptr/detail/sp_counted_base_std_atomic.hpp>
  21. #endif
  22. #endif // #ifndef BOOST_SMART_PTR_DETAIL_SP_COUNTED_BASE_HPP_INCLUDED