- 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

View File

@ -56,6 +56,9 @@ endif()
if (POLICY CMP0074)
cmake_policy(SET CMP0074 NEW)
endif()
if (POLICY CMP0167)
cmake_policy(SET CMP0167 NEW)
endif()
project(OSRM C CXX)

View File

@ -1,4 +1,4 @@
FROM alpine:3.20.5 AS alpine-mimalloc
FROM alpine:3.21.2 AS alpine-mimalloc
RUN apk add --no-cache mimalloc

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.