Merge pull request #13 from Romain-Geissler-1A/fix-deprecated-copy-warning

Fix -Wdeprecated-copy warning with gcc 9.
This commit is contained in:
Joel de Guzman
2020-01-23 22:36:37 +08:00
committed by GitHub

View File

@ -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 <class HT2, class TT2>
cons( const cons<HT2, TT2>& u ) : head(u.head), tail(u.tail) {}
@ -389,6 +390,8 @@ struct cons<HT, null_type> {
const null_type&, const null_type&, const null_type&)
: head () {}
cons( const cons& u ) : head(u.head) {}
template <class HT2>
cons( const cons<HT2, null_type>& u ) : head(u.head) {}