Skip to content

Commit

Permalink
Fix release build
Browse files Browse the repository at this point in the history
  • Loading branch information
stheophil committed Dec 29, 2022
1 parent f52c515 commit 27f3997
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tc/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ namespace tc {
using Overload::Overload;
template<typename... Variant>
detail::visit_result_t<Overload, Variant...> operator()(Variant&&... v) const& MAYTHROW {
#if defined(TC_PRIVATE) || defined(_DEBUG)
([&]() noexcept { _ASSERTNORETURN( !v.valueless_by_exception() ); }(), ...);
#endif
return
#ifdef TC_MAC
std::__variant_detail::__visitation::__variant::__visit_value // does not throw std::bad_variant_access, which is not supported until macOS 10.14
Expand Down

0 comments on commit 27f3997

Please sign in to comment.