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:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user