Skip to content

Commit

Permalink
include nodiscard macro
Browse files Browse the repository at this point in the history
  • Loading branch information
alfC committed Feb 18, 2025
1 parent 2163ab4 commit f439f97
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/boost/multi/adaptors/blas/copy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#define BOOST_MULTI_ADAPTORS_BLAS_COPY_HPP
#pragma once

#include <boost/multi/detail/config/NODISCARD.hpp>

#include <boost/multi/adaptors/blas/core.hpp> // for copy, default_context_of // IWYU pragma: export
// IWYU pragma: no_include "boost/multi/adaptors/blas/core.hpp" // bug in iwyu 18.1.8?

Expand Down Expand Up @@ -62,7 +64,7 @@ struct copy_it {
};

template<class A1D>
[[nodiscard("a blas::copy range needs to be assigned to produce a result")]]
BOOST_MULTI_NODISCARD("a blas::copy range needs to be assigned to produce a result")
auto copy(A1D const& x) { // NOLINT(readability-identifier-length) BLAS naming
class ref {
A1D const& source_; // NOLINT(misc-non-private-member-variables-in-classes,cppcoreguidelines-avoid-const-or-ref-data-members)
Expand Down

0 comments on commit f439f97

Please sign in to comment.