speculative fix for msvc 8.0 test failure

This commit is contained in:
Andrzej Krzemienski
2016-02-20 11:34:18 +01:00
parent 1334602a2b
commit 3b58b0f4da

View File

@ -560,7 +560,11 @@ class optional_base : public optional_tag
private : 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 ; } void destroy_impl ( ) { m_storage.ref().T::~T() ; m_initialized = false ; }
#endif
bool m_initialized ; bool m_initialized ;
storage_type m_storage ; storage_type m_storage ;