From 1e0276741beae5a3fb51489d3cbe289ff51f83fb Mon Sep 17 00:00:00 2001 From: Romain Geissler Date: Wed, 17 Apr 2019 21:13:33 +0000 Subject: [PATCH] Fix -Wdeprecated-copy warning with gcc 9. --- include/boost/tuple/detail/tuple_basic.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/boost/tuple/detail/tuple_basic.hpp b/include/boost/tuple/detail/tuple_basic.hpp index 4ea13ef..7e5dddc 100644 --- a/include/boost/tuple/detail/tuple_basic.hpp +++ b/include/boost/tuple/detail/tuple_basic.hpp @@ -310,6 +310,7 @@ struct cons { tail (t2, t3, t4, t5, t6, t7, t8, t9, t10, detail::cnull()) {} + cons( const cons& u ) : head(u.head), tail(u.tail) {} template cons( const cons& u ) : head(u.head), tail(u.tail) {} @@ -389,6 +390,8 @@ struct cons { const null_type&, const null_type&, const null_type&) : head () {} + cons( const cons& u ) : head(u.head) {} + template cons( const cons& u ) : head(u.head) {}