Skip to content

Commit

Permalink
Added default copy constructors where their implicit definition is no…
Browse files Browse the repository at this point in the history
…w (C++11) deprecated due to the presence of user-declared copy assignment operators. This prevents -Wdeprecated-copy from complaining.
  • Loading branch information
pkeir authored and zayenz committed Oct 13, 2021
1 parent a15997f commit fec7e9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gecode/iter/ranges-inter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ namespace Gecode { namespace Iter { namespace Ranges {
/// Initialize with \a n iterators in \a i
template<class I>
NaryInter(Region& r, I* i, int n);
/// Copy constructor
NaryInter(const NaryInter&) = default;
/// Initialize with single iterator \a i
template<class I>
void init(Region& r, I& i);
Expand Down
2 changes: 2 additions & 0 deletions gecode/iter/ranges-union.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ namespace Gecode { namespace Iter { namespace Ranges {
/// Initialize with \a n iterators in \a i
template<class I>
NaryUnion(Region& r, I* i, int n);
/// Copy constructor
NaryUnion(const NaryUnion&) = default;
/// Initialize with single iterator \a i
template<class I>
void init(Region& r, I& i);
Expand Down

0 comments on commit fec7e9f

Please sign in to comment.