Skip to content

Commit

Permalink
add nosonar
Browse files Browse the repository at this point in the history
  • Loading branch information
alfC committed Jan 24, 2025
1 parent cef2f24 commit 8ed2e5a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/boost/multi/array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -959,12 +959,17 @@ struct static_array<T, ::boost::multi::dimensionality_type{0}, Alloc> // NOLINT
BOOST_MULTI_FRIEND_CONSTEXPR auto origin(static_array& self) -> typename static_array::element_ptr { return self.origin(); }
BOOST_MULTI_FRIEND_CONSTEXPR auto origin(static_array const& self) -> typename static_array::element_const_ptr { return self.origin(); }

// NOSONAR
constexpr operator typename std::iterator_traits<typename static_array::element_const_ptr>::reference() const& { // NOLINT(google-explicit-constructor,hicpp-explicit-conversions)
return *(this->base_);
}

// NOSONAR
constexpr operator std::add_rvalue_reference_t<typename std::iterator_traits<typename static_array::element_ptr>::reference>() && { // NOLINT(google-explicit-constructor,hicpp-explicit-conversions)
return std::move(*(this->base_));
}

// NOSONAR
constexpr operator typename std::iterator_traits<typename static_array::element_ptr>::reference() & { // NOLINT(google-explicit-constructor,hicpp-explicit-conversions)
return *(this->base_);
}
Expand Down

0 comments on commit 8ed2e5a

Please sign in to comment.