forked from boostorg/optional
speculative fix for msvc 8.0 test failure
This commit is contained in:
1 parent
1334602a2b
commit
3b58b0f4da
1 file changed
+4
@@ -560,7 +560,11 @@ class optional_base : public optional_tag
|
||||
|
||||
private :
|
||||
|
||||
#if BOOST_WORKAROUND(BOOST_MSVC, < 1400)
|
||||
void destroy_impl ( ) { boost::addressof(m_storage.ref())->~T() ; m_initialized = false ; }
|
||||
#else
|
||||
void destroy_impl ( ) { m_storage.ref().T::~T() ; m_initialized = false ; }
|
||||
#endif
|
||||
|
||||
bool m_initialized ;
|
||||
storage_type m_storage ;
|
||||
|
||||
Reference in new issue
Block a user