Fixed a few things
This commit is contained in:
@@ -6752,7 +6752,7 @@ namespace sol {
|
||||
static_assert(std::is_constructible<T, Args&&...>::value, "T must be constructible with Args");
|
||||
|
||||
*this = nullopt;
|
||||
this->construct(std::forward<Args>(args)...);
|
||||
new (static_cast<void*>(this)) optional(std::in_place, std::forward<Args>(args)...);
|
||||
}
|
||||
|
||||
/// Swaps this optional with the other.
|
||||
|
||||
Reference in New Issue
Block a user