Skip to content

Commit

Permalink
Merge pull request #276 from Romain-Geissler-1A/fix-deprecated-copy-w…
Browse files Browse the repository at this point in the history
…arning

Fix clang -Wdeprecated-copy warning when using -std=gnu++2b in boost/archive/detail/helper_collection.hpp
  • Loading branch information
robertramey authored Aug 23, 2023
2 parents 7d0e155 + a7a8704 commit cc2d5dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/boost/archive/detail/helper_collection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class helper_collection
collection m_collection;

struct predicate {
BOOST_DEFAULTED_FUNCTION(predicate(const predicate& rhs), { m_ti = rhs.m_ti; })
BOOST_DELETED_FUNCTION(predicate & operator=(const predicate & rhs))
public:
const void * const m_ti;
Expand Down

0 comments on commit cc2d5dc

Please sign in to comment.