mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-06 14:24:09 +00:00
fix optional
This commit is contained in:
parent
8cb432dee1
commit
410a8af026
3 changed files with 72 additions and 6 deletions
|
@ -108,6 +108,7 @@ namespace sprout {
|
|||
void swap(optional& other)
|
||||
SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(sprout::swap(storage_, other.storage_)))
|
||||
{
|
||||
sprout::swap(initialized_, other.initialized_);
|
||||
sprout::swap(storage_, other.storage_);
|
||||
}
|
||||
|
||||
|
@ -180,7 +181,6 @@ namespace sprout {
|
|||
{
|
||||
lhs.swap(rhs);
|
||||
}
|
||||
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_OPTIONAL_OPTIONAL_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue