|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r73333 - sandbox/coerce/boost/coerce
From: vexocide_at_[hidden]
Date: 2011-07-24 13:50:31
Author: vexocide
Date: 2011-07-24 13:50:30 EDT (Sun, 24 Jul 2011)
New Revision: 73333
URL: http://svn.boost.org/trac/boost/changeset/73333
Log:
Silence incorrect MSVC warning
Text files modified:
sandbox/coerce/boost/coerce/tag.hpp | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
Modified: sandbox/coerce/boost/coerce/tag.hpp
==============================================================================
--- sandbox/coerce/boost/coerce/tag.hpp (original)
+++ sandbox/coerce/boost/coerce/tag.hpp 2011-07-24 13:50:30 EDT (Sun, 24 Jul 2011)
@@ -13,6 +13,7 @@
#include <boost/coerce/precision.hpp>
+#include <boost/config.hpp>
#include <boost/spirit/home/karma/auto.hpp>
#include <boost/spirit/home/karma/numeric.hpp>
#include <boost/spirit/home/qi/auto.hpp>
@@ -79,8 +80,15 @@
template <unsigned Radix>
struct base {
+#ifdef BOOST_MSVC
+#pragma warning(push)
+#pragma warning(disable: 4348) // redefinition of default parameter : parameter 2
+#endif
template <typename Target, bool U = is_signed<Target>::value>
struct parser_base;
+#ifdef BOOST_MSVC
+#pragma warning(pop)
+#endif
template <typename Target>
struct parser_base<Target, true>
@@ -96,8 +104,15 @@
parser(tag::base<Radix> const &) { }
};
+#ifdef BOOST_MSVC
+#pragma warning(push)
+#pragma warning(disable: 4348) // redefinition of default parameter : parameter 2
+#endif
template <typename Source, bool U = is_signed<Source>::value>
struct generator_base;
+#ifdef BOOST_MSVC
+#pragma warning(pop)
+#endif
template <typename Source>
struct generator_base<Source, true>
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