Workaround for VC10 unique_ptr operator->

This commit is contained in:
Glen Fernandes
2019-08-30 12:03:36 -04:00
parent 6a5f67b3a2
commit 034f94617d
13 changed files with 17 additions and 24 deletions
@@ -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) { }