Skip to content

Commit d881a7b

Browse files
committed
Oops, _v is C++14
1 parent c43b156 commit d881a7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/pybind11/detail/argument_vector.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ union inline_array_or_vector {
6363
heap_vector(std::size_t count, VectorT value) : vec(count, value) {}
6464
};
6565

66-
static_assert(std::is_nothrow_move_assignable_v<ArrayT>, "this class is not exception safe");
66+
static_assert(std::is_nothrow_move_assignable<ArrayT>::value, "this class is not exception safe");
6767

6868
inline_array iarray;
6969
heap_vector hvector;
@@ -216,7 +216,7 @@ struct small_vector {
216216
using heap_vector = typename repr_type::heap_vector;
217217
heap_vector hv;
218218
hv.vec.reserve(reserved_size);
219-
static_assert(std::is_nothrow_move_assignable_v<T>, "this class is not exception safe");
219+
static_assert(std::is_nothrow_move_assignable<T>::value, "this class is not exception safe");
220220
std::move(ha.arr.begin(), ha.arr.begin() + ha.size, std::back_inserter(hv.vec));
221221
new (&m_repr.hvector) heap_vector(std::move(hv));
222222
}

0 commit comments

Comments
 (0)