|
Boost : |
Subject: [boost] [spirit2] How to get encoding-specific parsers by character type
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2010-06-06 13:17:32
I was wondering if it was possible to get encoding-specific parsers by
character type? Something like that:
template< typename CharT >
struct encoding_specific
{
...
};
typedef encoding_specific< char > narrow;
narrow::char_; // equivalent to spirit::standard::char_
typedef encoding_specific< wchar_t > wide;
wide::char_; // equivalent to spirit::standard_wide::char_
This would help a lot in generic programming, when the character type is
not known. Is there a tool like that already? If not, could it be added?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk