diff options
author | Jacques Lucke <jacques@blender.org> | 2020-07-14 16:20:44 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-07-14 16:23:40 +0300 |
commit | 6068f49c3309271a31ef131c0c9a5389310e8593 (patch) | |
tree | a92d6a47f4ef443475dce337eb400f7f3133e5c3 /source | |
parent | 2e8a78f4d1050b5faac34a4b913dfde5778690bc (diff) |
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenlib/BLI_memory_utils.hh | 4 |
1 files changed, 0 insertions, 4 deletions
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<typename T> void initialized_move_n(T *src, uint n, T *dst) */ template<typename T> void uninitialized_move_n(T *src, uint n, T *dst) { - static_assert(std::is_nothrow_move_constructible_v<T>, - "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++) { |