From 00a4185cf1875e8c3a864a2188f37e3aa1f2b2fd Mon Sep 17 00:00:00 2001 From: Daniel James Date: Mon, 8 Jan 2018 10:58:09 +0000 Subject: [PATCH] Reformat --- include/boost/unordered/detail/implementation.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/boost/unordered/detail/implementation.hpp b/include/boost/unordered/detail/implementation.hpp index 18ba03bd..e26f353b 100644 --- a/include/boost/unordered/detail/implementation.hpp +++ b/include/boost/unordered/detail/implementation.hpp @@ -3256,12 +3256,14 @@ namespace boost { // Not nothrow swappable void swap(table& x, false_type) { - if (this == &x) { return; } + if (this == &x) { + return; + } this->construct_spare_functions(x.current_functions()); - BOOST_TRY { - x.construct_spare_functions(this->current_functions()); - } BOOST_CATCH(...) { + BOOST_TRY { x.construct_spare_functions(this->current_functions()); } + BOOST_CATCH(...) + { this->cleanup_spare_functions(); BOOST_RETHROW }