|
Boost-Commit : |
From: hartmut.kaiser_at_[hidden]
Date: 2008-04-20 13:00:35
Author: hkaiser
Date: 2008-04-20 13:00:35 EDT (Sun, 20 Apr 2008)
New Revision: 44639
URL: http://svn.boost.org/trac/boost/changeset/44639
Log:
Spirit.Qi: Fixed lit parser
Text files modified:
trunk/boost/spirit/home/qi/char/char.hpp | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
Modified: trunk/boost/spirit/home/qi/char/char.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/char/char.hpp (original)
+++ trunk/boost/spirit/home/qi/char/char.hpp 2008-04-20 13:00:35 EDT (Sun, 20 Apr 2008)
@@ -18,6 +18,7 @@
#include <boost/utility/enable_if.hpp>
#include <boost/type_traits/remove_reference.hpp>
#include <boost/foreach.hpp>
+#include <boost/mpl/print.hpp>
namespace boost { namespace spirit { namespace qi
{
@@ -52,12 +53,14 @@
typedef unused_type type; // literal parsers have no attribute
};
- static Char get_char(Char ch)
+ template <typename CharParam>
+ static CharParam get_char(CharParam ch)
{
return ch;
}
- static Char get_char(Char const* str)
+ template <typename CharParam>
+ static CharParam get_char(CharParam const* str)
{
return *str;
}
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