:
m_initialized(false) {}
- tc_optional_base ( argument_type val )
+ tc_optional_base ( init_value_tag, argument_type val )
:
m_initialized(true), m_storage(val) {}
// Assigns from another optional<T> (deep-copies the rhs value)
void assign ( tc_optional_base const& rhs )
{
- this->operator=(rhs);
+ *this = rhs;
}
// Assigns from another _convertible_ optional<U> (deep-copies the rhs value)
public :
- // **DEPPRECATED** Destroys the current value, if any, leaving this UNINITIALIZED
+ // Destroys the current value, if any, leaving this UNINITIALIZED
// No-throw (assuming T::~T() doesn't)
void reset() BOOST_NOEXCEPT { destroy(); }