From 5c78cdb9c5b6fd9d991ddc9b32b47826855bb53e Mon Sep 17 00:00:00 2001 From: Eric Friedman Date: Wed, 25 Dec 2002 00:00:48 +0000 Subject: [PATCH] Boost.Visitor initial release. [SVN r792] --- include/boost/optional.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }