Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r71496 - trunk/boost/regex/pending
From: john_at_[hidden]
Date: 2011-04-26 04:12:30


Author: johnmaddock
Date: 2011-04-26 04:12:27 EDT (Tue, 26 Apr 2011)
New Revision: 71496
URL: http://svn.boost.org/trac/boost/changeset/71496

Log:
Suppress msvc warning.
Fixes #5504.
Text files modified:
   trunk/boost/regex/pending/unicode_iterator.hpp | 7 +++++++
   1 files changed, 7 insertions(+), 0 deletions(-)

Modified: trunk/boost/regex/pending/unicode_iterator.hpp
==============================================================================
--- trunk/boost/regex/pending/unicode_iterator.hpp (original)
+++ trunk/boost/regex/pending/unicode_iterator.hpp 2011-04-26 04:12:27 EDT (Tue, 26 Apr 2011)
@@ -113,6 +113,10 @@
    return utf8_byte_count(c) - 1;
 }
 
+#ifdef BOOST_MSVC
+#pragma warning(push)
+#pragma warning(disable:4100)
+#endif
 inline void invalid_utf32_code_point(::boost::uint32_t val)
 {
 #ifndef BOOST_NO_STD_LOCALE
@@ -124,6 +128,9 @@
 #endif
    boost::throw_exception(e);
 }
+#ifdef BOOST_MSVC
+#pragma warning(pop)
+#endif
 
 
 } // namespace detail


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk