mirror of
https://github.com/boostorg/optional.git
synced 2026-01-30 02:02:17 +01:00
Work around msvc bug when explicitly destroying a class with a virtual base. Fixes #5940.
[SVN r82915]
This commit is contained in:
committed by
Andrzej Krzemienski
parent
84deab1aba
commit
8d6f6ddf4f
@@ -455,7 +455,7 @@ class optional_base : public optional_tag
|
||||
#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x581))
|
||||
void destroy_impl ( is_not_reference_tag ) { get_ptr_impl()->internal_type::~internal_type() ; m_initialized = false ; }
|
||||
#else
|
||||
void destroy_impl ( is_not_reference_tag ) { get_ptr_impl()->T::~T() ; m_initialized = false ; }
|
||||
void destroy_impl ( is_not_reference_tag ) { get_ptr_impl()->~T() ; m_initialized = false ; }
|
||||
#endif
|
||||
|
||||
void destroy_impl ( is_reference_tag ) { m_initialized = false ; }
|
||||
|
||||
Reference in New Issue
Block a user