diff --git a/include/boost/optional.hpp b/include/boost/optional.hpp index 792dc70..3b5b885 100644 --- a/include/boost/optional.hpp +++ b/include/boost/optional.hpp @@ -118,7 +118,9 @@ public: // modifiers optional& operator=(const T& operand) { clear(); - new(storage_.address()) T(operand.get()); + + new(storage_.address()) T(operand); + empty_ = false; return *this; }