From fd710a3bf0c483ebce61bdec4f41481bb2f8e605 Mon Sep 17 00:00:00 2001 From: Romain Geissler Date: Fri, 28 Feb 2020 02:05:31 +0000 Subject: [PATCH] Fix clang -Wdeprecated-copy warning in basic_regex_creator.hpp /data/mwrep/res/osp/Boost/19-0-0-18/include/boost/regex/v4/basic_regex_creator.hpp:52:4: error: definition of implicit copy assignment operator for 'digraph' is deprecated because it has a user-declared copy constructor [-Werror,-Wdeprecated-copy] digraph(const digraph& d) : std::pair(d.first, d.second){} ^ /data/mwrep/res/osp/Boost/19-0-0-18/include/boost/regex/v4/basic_regex_parser.hpp:1660:17: note: in implicit copy assignment operator for 'boost::re_detail_107000::digraph' first required here result = *m_position++; --- include/boost/regex/v4/basic_regex_creator.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/boost/regex/v4/basic_regex_creator.hpp b/include/boost/regex/v4/basic_regex_creator.hpp index f4b1660a..489a28f9 100644 --- a/include/boost/regex/v4/basic_regex_creator.hpp +++ b/include/boost/regex/v4/basic_regex_creator.hpp @@ -52,6 +52,9 @@ struct digraph : public std::pair digraph(charT c1, charT c2) : std::pair(c1, c2) {} digraph(const digraph& d) : std::pair(d.first, d.second){} +#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS + digraph& operator=(const digraph&) = default; +#endif template digraph(const Seq& s) : std::pair() {