From b18ce1d38444c8b2365f3039fff112017cd183f0 Mon Sep 17 00:00:00 2001 From: Liss Heidrich <31625940+liss-h@users.noreply.github.com> Date: Wed, 2 Oct 2024 15:49:29 +0200 Subject: [PATCH] revert some things --- conanfile.py | 1 - src/dice/ffi/metall_internal.hpp | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/conanfile.py b/conanfile.py index b22d2f6..68d36bc 100644 --- a/conanfile.py +++ b/conanfile.py @@ -32,7 +32,6 @@ class Recipe(ConanFile): def requirements(self): self.requires("metall/0.28", transitive_headers=True) - self.requires("boost/1.86.0", override=True) if self.options.with_test_deps: self.requires("doctest/2.4.11") diff --git a/src/dice/ffi/metall_internal.hpp b/src/dice/ffi/metall_internal.hpp index 2b3e395..c634871 100644 --- a/src/dice/ffi/metall_internal.hpp +++ b/src/dice/ffi/metall_internal.hpp @@ -17,11 +17,11 @@ namespace boost::interprocess::ipcdetail { */ inline void array_construct(void *mem, std::size_t num, in_place_interface &table) { //Try constructors - BOOST_TRY{ + BOOST_TRY { table.construct_n(mem, num); } //If there is an exception call destructors and erase index node - BOOST_CATCH(...){ + BOOST_CATCH(...) { table.destroy_n(mem, num); BOOST_RETHROW } BOOST_CATCH_END