forked from qt-creator/qt-creator
Lua: Pull in upstream fix for sol library
Fixes: QTCREATORBUG-31517 Change-Id: I800dcf5eb6a63d867bc59de9ba18472ab029dc6b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
3
src/libs/3rdparty/sol2/include/sol/sol.hpp
vendored
3
src/libs/3rdparty/sol2/include/sol/sol.hpp
vendored
@@ -6818,7 +6818,8 @@ 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)...);
|
||||
return **this;
|
||||
}
|
||||
|
||||
/// Swaps this optional with the other.
|
||||
|
Reference in New Issue
Block a user