2
0
mirror of https://github.com/boostorg/leaf.git synced 2026-02-23 03:42:18 +00:00

TLS current error updated by context::unload

This commit is contained in:
Emil Dotchevski
2026-02-11 18:28:31 -05:00
parent 36a28472f3
commit 552ff261e9

View File

@@ -435,9 +435,10 @@ public:
#endif
}
BOOST_LEAF_CONSTEXPR void unload(error_id id) noexcept(!BOOST_LEAF_CFG_CAPTURE)
void unload(error_id id) noexcept(!BOOST_LEAF_CFG_CAPTURE)
{
BOOST_LEAF_ASSERT(!is_active());
tls::write_current_error_id(static_cast<unsigned>(id.value()));
detail::tuple_for_each<std::tuple_size<Tup>::value,Tup>::unload(tup_, id.value());
}