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