|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r57469 - in trunk/boost/spirit/home: karma/char qi/detail
From: hartmut.kaiser_at_[hidden]
Date: 2009-11-07 17:35:53
Author: hkaiser
Date: 2009-11-07 17:35:52 EST (Sat, 07 Nov 2009)
New Revision: 57469
URL: http://svn.boost.org/trac/boost/changeset/57469
Log:
Spirit: fixing more warnings
Text files modified:
trunk/boost/spirit/home/karma/char/char_class.hpp | 3 +--
trunk/boost/spirit/home/qi/detail/assign_to.hpp | 4 ++--
2 files changed, 3 insertions(+), 4 deletions(-)
Modified: trunk/boost/spirit/home/karma/char/char_class.hpp
==============================================================================
--- trunk/boost/spirit/home/karma/char/char_class.hpp (original)
+++ trunk/boost/spirit/home/karma/char/char_class.hpp 2009-11-07 17:35:52 EST (Sat, 07 Nov 2009)
@@ -132,8 +132,7 @@
ch = CharParam(attr);
using spirit::char_class::classify;
- spirit::tag::space const space_;
- return classify<char_encoding>::is(space_, attr);
+ return classify<char_encoding>::is(tag::space(), attr);
}
// any_space has no attribute attached, use single space character
Modified: trunk/boost/spirit/home/qi/detail/assign_to.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/detail/assign_to.hpp (original)
+++ trunk/boost/spirit/home/qi/detail/assign_to.hpp 2009-11-07 17:35:52 EST (Sat, 07 Nov 2009)
@@ -69,7 +69,7 @@
static void
call(T const& val, Attribute& attr)
{
- attr = val;
+ attr = static_cast<Attribute>(val);
}
};
@@ -79,7 +79,7 @@
static void
call(T const& val, reference_wrapper<Attribute> attr)
{
- attr = val;
+ attr = static_cast<Attribute>(val.get());
}
};
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