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:
Marcus Tillmanns
2024-09-02 09:31:28 +02:00
parent 9d2281aff4
commit aea4c09497

View File

@@ -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.