- Update to Alpine Linux 3.21.2

- Fix no member named 'construct' in 'optional<type-parameter-0-0 &>' error in sol.hpp with Clang 19
- Fix Policy CMP0167 is not set: The FindBoost module is removed with cmake 3.31.1
This commit is contained in:
Alexander Farber
2025-01-12 20:59:12 +01:00
parent 6f235cca15
commit b7b2afa8e7
3 changed files with 6 additions and 2 deletions
+2 -1
View File
@@ -6752,7 +6752,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.