From 6068f49c3309271a31ef131c0c9a5389310e8593 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Tue, 14 Jul 2020 15:20:44 +0200 Subject: BLI: remove static assert noexcept move constructors The move constructor of `mpq_class` from GMP currently allocates when it is moved. So, it cannot be noexcept. Since we want to use this type, this static assert cannot stay there. --- source/blender/blenlib/BLI_memory_utils.hh | 4 ---- 1 file changed, 4 deletions(-) (limited to 'source/blender/blenlib/BLI_memory_utils.hh') diff --git a/source/blender/blenlib/BLI_memory_utils.hh b/source/blender/blenlib/BLI_memory_utils.hh index 133615f0f31..b73e0e95312 100644 --- a/source/blender/blenlib/BLI_memory_utils.hh +++ b/source/blender/blenlib/BLI_memory_utils.hh @@ -194,10 +194,6 @@ template void initialized_move_n(T *src, uint n, T *dst) */ template void uninitialized_move_n(T *src, uint n, T *dst) { - static_assert(std::is_nothrow_move_constructible_v, - "Ideally, all types should have this property. We might have to remove this " - "limitation of a real reason comes up."); - uint current = 0; try { for (; current < n; current++) { -- cgit v1.2.3