Peter Kümmel <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: | > Peter Kümmel <[EMAIL PROTECTED]> writes: | > | > | Peter Kümmel wrote: | > | > Seems we have to use a ifdef. | > | | > | Or we solve it with help of overloading the casting operator: | > | > Hmm... I think I'll put that in the 'quite ugly' category. | > | | Do you really prefer the configure/macro based version? This version | I would call'quite ugly'. I prefer a pure C++ version, but it's just | a matter of taste, so we should not discuss it.
The proper C++ solution is to use the locale handling in std (codecvt and friends). But AFAIK a lot of c++ compilers/libraries is severaly lacking there. (gcc libstdc++ interfaces directly to iconv, so there we could use that, but how does that leave us with other compilers?) -- Lgb