Skip to content

Commit

Permalink
Fix gcc12 and gcc13 warning.
Browse files Browse the repository at this point in the history
Fixes
mdspan/tests/libcxx-backports/mdspan/CustomTestAccessors.h:54:93: error: extra ';' [-Werror=pedantic]
   54 |   constexpr move_counted_handle(const move_counted_handle<OtherT>& other) : ptr(other.ptr){};
  • Loading branch information
rasolca authored Jun 27, 2024
1 parent 51779cc commit 152f192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/libcxx-backports/mdspan/CustomTestAccessors.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct move_counted_handle {
constexpr move_counted_handle(const move_counted_handle&) = default;
template <class OtherT>
requires(std::is_constructible_v<T*, OtherT*>)
constexpr move_counted_handle(const move_counted_handle<OtherT>& other) : ptr(other.ptr){};
constexpr move_counted_handle(const move_counted_handle<OtherT>& other) : ptr(other.ptr){}
constexpr move_counted_handle(move_counted_handle&& other) {
ptr = other.ptr;
#if MDSPAN_HAS_CXX_23
Expand Down

0 comments on commit 152f192

Please sign in to comment.