Merge branch 'develop' of https://github.com/RobertLeahy/optional-2 into RobertLeahy-develop

This commit is contained in:
Andrzej Krzemienski
2020-04-06 00:33:11 +02:00
6 changed files with 37 additions and 18 deletions

View File

@ -359,7 +359,7 @@ class tc_optional_base : public optional_tag
template<class Expr>
void construct ( Expr const& factory, in_place_factory_base const* )
{
boost_optional_detail::construct<value_type>(factory, m_storage.address());
boost_optional_detail::construct<value_type>(factory, boost::addressof(m_storage));
m_initialized = true ;
}