Fix compilation of template parameter with member enum T on VS2015

Issue: https://github.com/boostorg/optional/issues/46
This commit is contained in:
petamas
2018-01-03 10:46:31 +01:00
parent b832d4c54f
commit e230bd83c6

View File

@ -747,7 +747,7 @@ class optional_base : public optional_tag
private :
#if BOOST_WORKAROUND(BOOST_MSVC, <= 1600)
#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1900))
void destroy_impl ( ) { m_storage.ptr_ref()->~T() ; m_initialized = false ; }
#else
void destroy_impl ( ) { m_storage.ref().T::~T() ; m_initialized = false ; }