Skip to content

Commit

Permalink
Fix more warnings and errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ClausKlein committed Nov 26, 2024
1 parent e0caad9 commit 6146249
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/beman/inplace_vector/inplace_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ struct inplace_vector_destruct_base {
inplace_vector_destruct_base(
const inplace_vector_destruct_base
&&other) noexcept(std::is_nothrow_move_constructible_v<T>)
: elems(), size_(other.size()) {}
: elems(), size_(other.size_) {}

inplace_vector_destruct_base &
operator=(const inplace_vector_destruct_base &other) noexcept(
Expand Down
1 change: 1 addition & 0 deletions tests/beman/inplace_vector/inplace_vector.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ template <typename T> constexpr void test() {
typename vec::const_reference>::value,
"");
assert(front == T(1));
(void)front;

auto &&const_front = const_range.front();
static_assert(
Expand Down

0 comments on commit 6146249

Please sign in to comment.