This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Making strings of arbitrary character types


On Wed, 2004-12-01 at 10:40 +0100, Paolo Carlini wrote:
> Hi,
> 
> Have a look to include/bits/char_traits.h, there are plenty of 
> interesting comments
> and info. You will learn that a "generalization" of char_traits is now 
> provided, which
> often will work out of the box for many POD types besides char and wchar_t.
> However, you will also learn that some typedef and eof() are likely to 
> be wrong,
> in general (are Ok for unsigned char, by the way, and other "simple" cases)
Great; thanks!  Any chance this generalization can be used on 3.3.x or
does the compiler have issues?

> Indeed, this is an *intentional* improvement, and you can expect it to 
> be present at
> least in the whole 3.4.x series and the forthcoming 4.0.x series. You 
> are also right,
> however, that the fully portable solution involves providing your own 
> char_traits
> (probably, you can master that by studying the above file!)
Sounds like this is the route I'll have to take as portability is high
on the priority list.

Thanks for your help and the quick response!

-- 

Regards,
Nick G.
http://www.wheeloyum.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]