Boost logo

Boost :

Subject: Re: [boost] [strings][unicode] Proposals for Improved String Interoperability in a Unicode World
From: Keith Burton (kb_at_[hidden])
Date: 2012-01-30 02:04:51


>>
>> std::u32string stdstr;
>> const char * cstr = stdstr.c_str< char >();                     //
?????????

> That's a compile time error. The unspecified iterator type returned
> will not be const char*. It will be a conversion iterator with a value
> type of char, and thus only useful directly in purpose written code or
> in generic algorithms templated on iterator type.

In that case, perhaps a more appropriate name would be cbegin<> instead of
c_str<>

Keith


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk