Skip to content

Commit

Permalink
Why did that compile on Windows?!
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyONeal committed Oct 16, 2023
1 parent 42a2949 commit 35351c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/vcpkg/base/optional.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ namespace vcpkg
T* get() && = delete;

template<class... Args>
T& emplace(Args&&... args) noexcept(std::is_nothrow_constructible<T, Args...>)
T& emplace(Args&&... args) noexcept(std::is_nothrow_constructible_v<T, Args...>)
{
if (m_is_present) destroy();
new (&m_t) T(static_cast<Args&&>(args)...);
Expand Down

0 comments on commit 35351c2

Please sign in to comment.