Boost logo

Boost-Commit :

From: hartmut.kaiser_at_[hidden]
Date: 2008-07-19 12:49:47


Author: hkaiser
Date: 2008-07-19 12:49:46 EDT (Sat, 19 Jul 2008)
New Revision: 47603
URL: http://svn.boost.org/trac/boost/changeset/47603

Log:
Spirit: Fixed deprecated warning in main spirit.hpp
Text files modified:
   trunk/boost/spirit.hpp | 4 ++++
   1 files changed, 4 insertions(+), 0 deletions(-)

Modified: trunk/boost/spirit.hpp
==============================================================================
--- trunk/boost/spirit.hpp (original)
+++ trunk/boost/spirit.hpp 2008-07-19 12:49:46 EDT (Sat, 19 Jul 2008)
@@ -9,11 +9,15 @@
 #ifndef BOOST_SPIRIT_DEPRECATED_INCLUDE_SPIRIT
 #define BOOST_SPIRIT_DEPRECATED_INCLUDE_SPIRIT
 
+#include <boost/version.hpp>
+
+#if BOOST_VERSION >= 103800
 #if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__DMC__)
 # pragma message ("Warning: This header is deprecated. Please use: boost/spirit/include/classic.hpp")
 #elif defined(__GNUC__) || defined(__HP_aCC) || defined(__SUNPRO_CC) || defined(__IBMCPP__)
 # warning "This header is deprecated. Please use: boost/spirit/include/classic.hpp"
 #endif
+#endif
 
 #if !defined(BOOST_SPIRIT_USE_OLD_NAMESPACE)
 #define BOOST_SPIRIT_USE_OLD_NAMESPACE


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