Our application stores all characters internally as XMLCh, which is a typedef to either wchar_t or unsigned short, depending on platform and various other things. My questions are
1) Is it even possible to use regex++ with types which are not char or wchar_t? The documentation gives no examples of any other types, and at one point says "the character type, ie char or wchar_t". When I try to construct a reg_expression<XMLCh>, I get the following error message: 2) Does this mean I need to define a custom traits class? (or rather a custom traits class for every possible definition of XMLCh?) Is there anything else I need to do?
In theory just define your own traits class, you may well be able to inherit from one of the existing traits classes and get that to do most of the work. There is also a limitation that character types must be POD's. John Maddock http://ourworld.compuserve.com/homepages/john_maddock/index.htm