|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r85876 - trunk/boost/variant
From: antoshkka_at_[hidden]
Date: 2013-09-25 03:13:58
Author: apolukhin
Date: 2013-09-25 03:13:57 EDT (Wed, 25 Sep 2013)
New Revision: 85876
URL: http://svn.boost.org/trac/boost/changeset/85876
Log:
Fix unreachable code warning, thanks 'hvemha' for providing it (refs #8665)
Text files modified:
trunk/boost/variant/variant.hpp | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
Modified: trunk/boost/variant/variant.hpp
==============================================================================
--- trunk/boost/variant/variant.hpp Tue Sep 24 16:51:42 2013 (r85875)
+++ trunk/boost/variant/variant.hpp 2013-09-25 03:13:57 EDT (Wed, 25 Sep 2013) (r85876)
@@ -367,6 +367,10 @@
return operand;
}
+#if defined BOOST_MSVC
+# pragma warning( push )
+# pragma warning( disable : 4702 ) // unreachable code
+#endif
template <typename U>
T& operator()(U&) const
{
@@ -374,6 +378,9 @@
BOOST_ASSERT(false);
return ::boost::detail::variant::forced_return< T& >();
}
+#if defined BOOST_MSVC
+# pragma warning( pop )
+#endif
#else // MSVC6
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