1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

cad/librepcb: Unbreak on 15

This commit is contained in:
Yuri Victorovich 2024-10-31 12:34:54 -07:00
parent 0651e2054a
commit 0454a541d7
2 changed files with 22 additions and 2 deletions

View File

@ -13,8 +13,6 @@ WWW= https://librepcb.org/ \
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
BROKEN_FreeBSD_15= compilation error: no member named 'construct' in 'optional<type-parameter-0-0 &>', see https://github.com/LibrePCB/LibrePCB/issues/1454
LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg4 \
libfontconfig.so:x11-fonts/fontconfig \
libfreeimage.so:graphics/freeimage \

View File

@ -0,0 +1,22 @@
- workaround for https://github.com/LibrePCB/LibrePCB/issues/1454
--- libs/optional/tl/optional.hpp.orig 2024-10-31 19:31:32 UTC
+++ libs/optional/tl/optional.hpp
@@ -1979,17 +1979,6 @@ template <class T> class optional<T &> { (public)
return *this;
}
- /// Constructs the value in-place, destroying the current one if there is
- /// one.
- template <class... Args> T &emplace(Args &&... args) noexcept {
- static_assert(std::is_constructible<T, Args &&...>::value,
- "T must be constructible with Args");
-
- *this = nullopt;
- this->construct(std::forward<Args>(args)...);
- return value();
- }
-
void swap(optional &rhs) noexcept { std::swap(m_value, rhs.m_value); }
/// Returns a pointer to the stored value