mirror of
https://github.com/boostorg/optional.git
synced 2025-08-03 06:24:28 +02:00
Boost.Visitor initial release.
[SVN r792]
This commit is contained in:
@@ -118,7 +118,9 @@ public: // modifiers
|
|||||||
optional& operator=(const T& operand)
|
optional& operator=(const T& operand)
|
||||||
{
|
{
|
||||||
clear();
|
clear();
|
||||||
new(storage_.address()) T(operand.get());
|
|
||||||
|
new(storage_.address()) T(operand);
|
||||||
|
empty_ = false;
|
||||||
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user