Skip to content

Commit

Permalink
Merge pull request #53 from Romain-Geissler-1A/fix-clang-Wdeprecated-…
Browse files Browse the repository at this point in the history
…copy

Fix couple of -Wdeprecated-copy when using clang with std=gnu++20 or gnu++2b
  • Loading branch information
pdimov authored Aug 25, 2023
2 parents cca88c9 + d10c901 commit 9d9e5da
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/boost/accumulators/framework/accumulator_set.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ namespace detail
{
}

accumulator_visitor(accumulator_visitor const &other)
: args(other.args)
{
}

template<typename Accumulator>
void operator ()(Accumulator &accumulator) const
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ namespace boost { namespace accumulators
{
}

add_ref_visitor(add_ref_visitor const &other)
: args_(other.args_)
{
}

template<typename Accumulator>
void operator ()(Accumulator &acc) const
{
Expand Down

0 comments on commit 9d9e5da

Please sign in to comment.