From fdfcda97d70393c8f40efcb4fc64df233ebf49cc Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Wed, 19 May 2021 09:19:53 +0300 Subject: [PATCH] allocation_strategy: Mark size_for_allocation_strategy noexcept Signed-off-by: Pavel Emelyanov --- utils/allocation_strategy.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/allocation_strategy.hh b/utils/allocation_strategy.hh index e578df0f50..5583dcd462 100644 --- a/utils/allocation_strategy.hh +++ b/utils/allocation_strategy.hh @@ -59,7 +59,7 @@ public: template inline size_t -size_for_allocation_strategy(const T& obj) { +size_for_allocation_strategy(const T& obj) noexcept { return sizeof(T); }