]> git.lyx.org Git - lyx.git/blobdiff - 3rdparty/boost/boost/regex/v4/perl_matcher_common.hpp
Update to boost 1.72
[lyx.git] / 3rdparty / boost / boost / regex / v4 / perl_matcher_common.hpp
index a0973da92a6336a864c9523335d769f1f9eab6db..3c654e588e708597cecf7d6d3e56203f0001b3c6 100644 (file)
@@ -36,7 +36,9 @@
 #endif
 #ifdef BOOST_MSVC
 #  pragma warning(push)
-#  pragma warning(disable: 4800)
+#if BOOST_MSVC < 1910
+#pragma warning(disable:4800)
+#endif
 #endif
 
 namespace boost{
@@ -476,12 +478,14 @@ bool perl_matcher<BidiIterator, Allocator, traits>::match_word_boundary()
    }
    else
    {
-      b = (m_match_flags & match_not_eow) ? true : false;
+      if (m_match_flags & match_not_eow)
+         return false;
+      b = false;
    }
    if((position == backstop) && ((m_match_flags & match_prev_avail) == 0))
    {
       if(m_match_flags & match_not_bow)
-         b ^= true;
+         return false;
       else
          b ^= false;
    }