
12 Jun
2010
12 Jun
'10
3:53 p.m.
On 06/12/2010 04:15 PM, Hartmut Kaiser wrote:
What I want to be able to do is something like that:
template< typename CharT> void parse(const CharT* str) { typedef typename my_traits< CharT>::encoding encoding; typedef spirit::encoding_specific< encoding> parsers; qi::parse(str, *parsers::char_); }
The encoding type shall be one of the tags defined by spirit (for instance, spirit::char_encoding::standard). What I need is the encoding_specific traits in spirit.
That's making a lot more sense. Would you be willing to prepare a patch?
I created the following ticket: <https://svn.boost.org/trac/boost/ticket/4336> The patch is attached to it.