From 1f9ebabf072588b2b12eedbca61a16c6e1a2c844 Mon Sep 17 00:00:00 2001 From: Joseph Schuchart Date: Wed, 13 Nov 2024 18:23:29 -0500 Subject: [PATCH] Remove exception from empty_allocator::deallocate() The data copy will call deallocate no matter what, so be graceful. We will still catch cases where we try to allocate through the empty allocator. Signed-off-by: Joseph Schuchart --- ttg/ttg/parsec/buffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ttg/ttg/parsec/buffer.h b/ttg/ttg/parsec/buffer.h index 8662901d2..82bb4c4c6 100644 --- a/ttg/ttg/parsec/buffer.h +++ b/ttg/ttg/parsec/buffer.h @@ -35,7 +35,7 @@ namespace detail { } void deallocate(value_type* ptr, std::size_t size) { - throw std::runtime_error("Deallocate on empty allocator!"); + /* nothing to be done; will be called from ~data_copy_type() */ } };