From 35351c2f3131e3aae324be4d70135e428190490e Mon Sep 17 00:00:00 2001 From: Billy Robert O'Neal III Date: Mon, 16 Oct 2023 14:11:39 -0700 Subject: [PATCH] Why did that compile on Windows?! --- include/vcpkg/base/optional.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/vcpkg/base/optional.h b/include/vcpkg/base/optional.h index f271be4739..50a186866d 100644 --- a/include/vcpkg/base/optional.h +++ b/include/vcpkg/base/optional.h @@ -200,7 +200,7 @@ namespace vcpkg T* get() && = delete; template - T& emplace(Args&&... args) noexcept(std::is_nothrow_constructible) + T& emplace(Args&&... args) noexcept(std::is_nothrow_constructible_v) { if (m_is_present) destroy(); new (&m_t) T(static_cast(args)...);