|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r73691 - trunk/boost/numeric/conversion/detail
From: dnljms_at_[hidden]
Date: 2011-08-12 02:55:09
Author: danieljames
Date: 2011-08-12 02:55:07 EDT (Fri, 12 Aug 2011)
New Revision: 73691
URL: http://svn.boost.org/trac/boost/changeset/73691
Log:
Conversion: Fix preprocessor iteration.
Some preprocessors process all the 'elif' clauses even if it's known
that they're not going to be used which was resulting in errors.
Text files modified:
trunk/boost/numeric/conversion/detail/numeric_cast_traits.hpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
Modified: trunk/boost/numeric/conversion/detail/numeric_cast_traits.hpp
==============================================================================
--- trunk/boost/numeric/conversion/detail/numeric_cast_traits.hpp (original)
+++ trunk/boost/numeric/conversion/detail/numeric_cast_traits.hpp 2011-08-12 02:55:07 EDT (Fri, 12 Aug 2011)
@@ -8,7 +8,8 @@
//
#if !defined(BOOST_NUMERIC_CONVERSION_DONT_USE_PREPROCESSED_FILES)
#include <boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp>
-#elif !BOOST_PP_IS_ITERATING
+#else
+#if !BOOST_PP_IS_ITERATING
#include <boost/preprocessor/iteration/iterate.hpp>
#include <boost/preprocessor/seq/elem.hpp>
@@ -101,3 +102,4 @@
#undef BOOST_NUMERIC_CONVERSION_B
#endif//! Depth 2.
+#endif// BOOST_NUMERIC_CONVERSION_DONT_USE_PREPROCESSED_FILES
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