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.
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user