mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-07-31 13:17:23 +02:00
Workaround for VC10 unique_ptr operator->
This commit is contained in:
@@ -93,6 +93,11 @@ public:
|
||||
sp_alloc_ptr() BOOST_SP_NOEXCEPT
|
||||
: p_() { }
|
||||
|
||||
#if defined(BOOST_MSVC) && BOOST_MSVC == 1600
|
||||
sp_alloc_ptr(T* p) BOOST_SP_NOEXCEPT
|
||||
: p_(const_cast<typename boost::remove_cv<T>::type*>(p)) { }
|
||||
#endif
|
||||
|
||||
sp_alloc_ptr(std::size_t, P p) BOOST_SP_NOEXCEPT
|
||||
: p_(p) { }
|
||||
|
||||
|
@@ -6,8 +6,7 @@ Distributed under the Boost Software License, Version 1.0.
|
||||
(http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
#include <boost/config.hpp>
|
||||
#if (!defined(BOOST_MSVC) || BOOST_MSVC >= 1700) && \
|
||||
(!defined(BOOST_LIBSTDCXX_VERSION) || \
|
||||
#if (!defined(BOOST_LIBSTDCXX_VERSION) || \
|
||||
BOOST_LIBSTDCXX_VERSION >= 46000) && \
|
||||
!defined(BOOST_NO_CXX11_SMART_PTR) && \
|
||||
!defined(BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX)
|
||||
|
@@ -6,8 +6,7 @@ Distributed under the Boost Software License, Version 1.0.
|
||||
(http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
#include <boost/config.hpp>
|
||||
#if (!defined(BOOST_MSVC) || BOOST_MSVC >= 1700) && \
|
||||
(!defined(BOOST_LIBSTDCXX_VERSION) || \
|
||||
#if (!defined(BOOST_LIBSTDCXX_VERSION) || \
|
||||
BOOST_LIBSTDCXX_VERSION >= 46000) && \
|
||||
!defined(BOOST_NO_CXX11_SMART_PTR) && \
|
||||
!defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
||||
|
@@ -6,8 +6,7 @@ Distributed under the Boost Software License, Version 1.0.
|
||||
(http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
#include <boost/config.hpp>
|
||||
#if (!defined(BOOST_MSVC) || BOOST_MSVC >= 1700) && \
|
||||
(!defined(BOOST_LIBSTDCXX_VERSION) || \
|
||||
#if (!defined(BOOST_LIBSTDCXX_VERSION) || \
|
||||
BOOST_LIBSTDCXX_VERSION >= 48000) && \
|
||||
!defined(BOOST_NO_CXX11_SMART_PTR) && \
|
||||
!defined(BOOST_NO_CXX11_ALLOCATOR)
|
||||
|
@@ -6,8 +6,7 @@ Distributed under the Boost Software License, Version 1.0.
|
||||
(http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
#include <boost/config.hpp>
|
||||
#if (!defined(BOOST_MSVC) || BOOST_MSVC >= 1700) && \
|
||||
(!defined(BOOST_LIBSTDCXX_VERSION) || \
|
||||
#if (!defined(BOOST_LIBSTDCXX_VERSION) || \
|
||||
BOOST_LIBSTDCXX_VERSION >= 48000) && \
|
||||
!defined(BOOST_NO_CXX11_SMART_PTR)
|
||||
#include <boost/smart_ptr/allocate_unique.hpp>
|
||||
|
@@ -6,8 +6,7 @@ Distributed under the Boost Software License, Version 1.0.
|
||||
(http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
#include <boost/config.hpp>
|
||||
#if (!defined(BOOST_MSVC) || BOOST_MSVC >= 1700) && \
|
||||
(!defined(BOOST_LIBSTDCXX_VERSION) || \
|
||||
#if (!defined(BOOST_LIBSTDCXX_VERSION) || \
|
||||
BOOST_LIBSTDCXX_VERSION >= 48000) && \
|
||||
!defined(BOOST_NO_CXX11_SMART_PTR)
|
||||
#include <boost/smart_ptr/allocate_unique.hpp>
|
||||
|
@@ -6,8 +6,7 @@ Distributed under the Boost Software License, Version 1.0.
|
||||
(http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
#include <boost/config.hpp>
|
||||
#if (!defined(BOOST_MSVC) || BOOST_MSVC >= 1700) && \
|
||||
(!defined(BOOST_LIBSTDCXX_VERSION) || \
|
||||
#if (!defined(BOOST_LIBSTDCXX_VERSION) || \
|
||||
BOOST_LIBSTDCXX_VERSION >= 48000) && \
|
||||
!defined(BOOST_NO_CXX11_SMART_PTR)
|
||||
#include <boost/smart_ptr/allocate_unique.hpp>
|
||||
|
@@ -6,8 +6,7 @@ Distributed under the Boost Software License, Version 1.0.
|
||||
(http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
#include <boost/config.hpp>
|
||||
#if (!defined(BOOST_MSVC) || BOOST_MSVC >= 1700) && \
|
||||
(!defined(BOOST_LIBSTDCXX_VERSION) || \
|
||||
#if (!defined(BOOST_LIBSTDCXX_VERSION) || \
|
||||
BOOST_LIBSTDCXX_VERSION >= 48000) && \
|
||||
!defined(BOOST_NO_CXX11_SMART_PTR)
|
||||
#include <boost/smart_ptr/allocate_unique.hpp>
|
||||
|
@@ -6,8 +6,7 @@ Distributed under the Boost Software License, Version 1.0.
|
||||
(http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
#include <boost/config.hpp>
|
||||
#if (!defined(BOOST_MSVC) || BOOST_MSVC >= 1700) && \
|
||||
(!defined(BOOST_LIBSTDCXX_VERSION) || \
|
||||
#if (!defined(BOOST_LIBSTDCXX_VERSION) || \
|
||||
BOOST_LIBSTDCXX_VERSION >= 48000) && \
|
||||
!defined(BOOST_NO_CXX11_SMART_PTR) && \
|
||||
!defined(BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX)
|
||||
|
@@ -6,8 +6,7 @@ Distributed under the Boost Software License, Version 1.0.
|
||||
(http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
#include <boost/config.hpp>
|
||||
#if (!defined(BOOST_MSVC) || BOOST_MSVC >= 1700) && \
|
||||
(!defined(BOOST_LIBSTDCXX_VERSION) || \
|
||||
#if (!defined(BOOST_LIBSTDCXX_VERSION) || \
|
||||
BOOST_LIBSTDCXX_VERSION >= 46000) && \
|
||||
!defined(BOOST_NO_CXX11_SMART_PTR)
|
||||
#include <boost/smart_ptr/allocate_unique.hpp>
|
||||
|
@@ -6,8 +6,7 @@ Distributed under the Boost Software License, Version 1.0.
|
||||
(http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
#include <boost/config.hpp>
|
||||
#if (!defined(BOOST_MSVC) || BOOST_MSVC >= 1700) && \
|
||||
(!defined(BOOST_LIBSTDCXX_VERSION) || \
|
||||
#if (!defined(BOOST_LIBSTDCXX_VERSION) || \
|
||||
BOOST_LIBSTDCXX_VERSION >= 46000) && \
|
||||
!defined(BOOST_NO_CXX11_SMART_PTR)
|
||||
#include <boost/smart_ptr/allocate_unique.hpp>
|
||||
|
@@ -6,8 +6,7 @@ Distributed under the Boost Software License, Version 1.0.
|
||||
(http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
#include <boost/config.hpp>
|
||||
#if (!defined(BOOST_MSVC) || BOOST_MSVC >= 1700) && \
|
||||
(!defined(BOOST_LIBSTDCXX_VERSION) || \
|
||||
#if (!defined(BOOST_LIBSTDCXX_VERSION) || \
|
||||
BOOST_LIBSTDCXX_VERSION >= 46000) && \
|
||||
!defined(BOOST_NO_CXX11_SMART_PTR)
|
||||
#include <boost/smart_ptr/allocate_unique.hpp>
|
||||
|
@@ -6,8 +6,7 @@ Distributed under the Boost Software License, Version 1.0.
|
||||
(http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
#include <boost/config.hpp>
|
||||
#if (!defined(BOOST_MSVC) || BOOST_MSVC >= 1700) && \
|
||||
(!defined(BOOST_LIBSTDCXX_VERSION) || \
|
||||
#if (!defined(BOOST_LIBSTDCXX_VERSION) || \
|
||||
BOOST_LIBSTDCXX_VERSION >= 46000) && \
|
||||
!defined(BOOST_NO_CXX11_SMART_PTR)
|
||||
#include <boost/smart_ptr/allocate_unique.hpp>
|
||||
|
Reference in New Issue
Block a user