We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f52c515 commit 27f3997Copy full SHA for 27f3997
tc/variant.h
@@ -181,7 +181,9 @@ namespace tc {
181
using Overload::Overload;
182
template<typename... Variant>
183
detail::visit_result_t<Overload, Variant...> operator()(Variant&&... v) const& MAYTHROW {
184
+#if defined(TC_PRIVATE) || defined(_DEBUG)
185
([&]() noexcept { _ASSERTNORETURN( !v.valueless_by_exception() ); }(), ...);
186
+#endif
187
return
188
#ifdef TC_MAC
189
std::__variant_detail::__visitation::__variant::__visit_value // does not throw std::bad_variant_access, which is not supported until macOS 10.14
0 commit comments