
6 Jul
2010
6 Jul
'10
9:44 a.m.
Le 05/07/2010 18:48, Bo Persson wrote:
You can, but you should specialize on the third parameter, if you want to treat chars differently than default.
A codecvt<char, char, my_state_t> could easily do any kind of conversions you need.
I don't particularly need state, what I would like is to be able to use the right character types rather than wide characters, which are implementation-specific. Also it doesn't seem states other than mbstate_t can be used by filebufs.