|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r56245 - trunk/boost/spirit/home/lex/qi
From: hartmut.kaiser_at_[hidden]
Date: 2009-09-16 15:06:34
Author: hkaiser
Date: 2009-09-16 15:06:33 EDT (Wed, 16 Sep 2009)
New Revision: 56245
URL: http://svn.boost.org/trac/boost/changeset/56245
Log:
Spirit: fixed a warning about signed/unsigned mismatch
Text files modified:
trunk/boost/spirit/home/lex/qi/plain_token.hpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Modified: trunk/boost/spirit/home/lex/qi/plain_token.hpp
==============================================================================
--- trunk/boost/spirit/home/lex/qi/plain_token.hpp (original)
+++ trunk/boost/spirit/home/lex/qi/plain_token.hpp 2009-09-16 15:06:33 EDT (Wed, 16 Sep 2009)
@@ -79,9 +79,10 @@
typedef typename
boost::detail::iterator_traits<Iterator>::value_type
token_type;
+ typedef typename token_type::id_type id_type;
token_type &t = *first;
- if (id == t.id()) {
+ if (id_type(id) == t.id()) {
qi::detail::assign_to(t, attr);
++first;
return 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