From fec7e9fd99bca98f146416ba8ea8adc278f5a95a Mon Sep 17 00:00:00 2001 From: Paul Keir Date: Tue, 12 Oct 2021 12:01:19 +0100 Subject: [PATCH] Added default copy constructors where their implicit definition is now (C++11) deprecated due to the presence of user-declared copy assignment operators. This prevents -Wdeprecated-copy from complaining. --- gecode/iter/ranges-inter.hpp | 2 ++ gecode/iter/ranges-union.hpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/gecode/iter/ranges-inter.hpp b/gecode/iter/ranges-inter.hpp index acd216d24a..c2696ef47a 100644 --- a/gecode/iter/ranges-inter.hpp +++ b/gecode/iter/ranges-inter.hpp @@ -89,6 +89,8 @@ namespace Gecode { namespace Iter { namespace Ranges { /// Initialize with \a n iterators in \a i template NaryInter(Region& r, I* i, int n); + /// Copy constructor + NaryInter(const NaryInter&) = default; /// Initialize with single iterator \a i template void init(Region& r, I& i); diff --git a/gecode/iter/ranges-union.hpp b/gecode/iter/ranges-union.hpp index 7d805fbab4..5465d08eef 100644 --- a/gecode/iter/ranges-union.hpp +++ b/gecode/iter/ranges-union.hpp @@ -95,6 +95,8 @@ namespace Gecode { namespace Iter { namespace Ranges { /// Initialize with \a n iterators in \a i template NaryUnion(Region& r, I* i, int n); + /// Copy constructor + NaryUnion(const NaryUnion&) = default; /// Initialize with single iterator \a i template void init(Region& r, I& i);