[Uml-devel] KDE/kdesdk/umbrello/umbrello/codeimport/kdevcppparser
Oliver Kellogg
okellogg at users.sourceforge.net
Sun Mar 30 08:36:37 UTC 2008
SVN commit 791750 by okellogg:
Be more tolerant about the BOOST_VERSION - we don't want to have to
adjust the #ifdefs each time a new Boost version appears.
CCMAIL: jean.vittor at free.fr
M +2 -4 position.h
--- trunk/KDE/kdesdk/umbrello/umbrello/codeimport/kdevcppparser/position.h #791749:791750
@@ -24,7 +24,7 @@
#include <boost/spirit.hpp>
#include <QString>
-#if BOOST_VERSION == 103301
+#if BOOST_VERSION < 103400
typedef boost::spirit::file_position Position;
typedef std::string PositionFilename;
@@ -33,7 +33,7 @@
return (char const*)p.toAscii();
}
-#elif BOOST_VERSION == 103400 || BOOST_VERSION == 103401
+#else
# include <QChar>
typedef boost::spirit::file_position_base<std::basic_string<QChar> > Position;
@@ -43,8 +43,6 @@
return p.data();
}
-#else
-# error Unknown version of boost lib
#endif
inline bool operator<( Position const& p1, Position const& p2) {
More information about the umbrello-devel
mailing list