lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master a88f402 5/6: Disable clang -Wdeprecated-copy


From: Greg Chicares
Subject: [lmi-commits] [lmi] master a88f402 5/6: Disable clang -Wdeprecated-copy warning in regex_iterator
Date: Fri, 3 Apr 2020 18:51:39 -0400 (EDT)

branch: master
commit a88f40208a6dc69372b670772b26a030fba32daf
Author: Vadim Zeitlin <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Disable clang -Wdeprecated-copy warning in regex_iterator
    
    This is necessary to avoid the following
    
    boost/regex/v4/regex_iterator.hpp:74:35: error: definition of implicit
    copy constructor for 'regex_iterator_implementation<...>' is deprecated
    because it has a user-declared copy assignment operator
    
    error when compiling Boost.Regex code with clang 10.
---
 boost_regex.hpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/boost_regex.hpp b/boost_regex.hpp
index 8e2f4b0..25d365e 100644
--- a/boost_regex.hpp
+++ b/boost_regex.hpp
@@ -27,6 +27,7 @@
 #if defined __clang__
 #   pragma clang diagnostic push
 #   pragma clang diagnostic ignored "-Wdeprecated-declarations"
+#   pragma clang diagnostic ignored "-Wdeprecated-copy"
 #elif defined __GNUC__
 #   pragma GCC diagnostic push
 #   if 7 <= __GNUC__



reply via email to

[Prev in Thread] Current Thread [Next in Thread]