string_char_traits or char_traits

Valignat Cedric valignat@nevrax.com
Mon Jan 29 03:47:00 GMT 2001


Hello,

I tried to compile some code from somebody else who used the STLPorts
(without any problems) but using the libstdc++ headers, and that give
me a compilation error at the folowing line :

   template  <class T> static void NL3DcomputeString (CFontManager *fm,
      const std::basic_string<T, std::char_traits<T>, std::allocator<T> > &s,
      [...] )
{
   [...]
}


By inspecting the code and other sources (STLPorts headers, SGI's STL site,
and a book, claming "conforms to 1998 ANSI C++ standard", discribing the use
of the STL) i found that you were using a class/type named "string_char_traits"
and they were using a class/type named "char_traits" instead ... :-(

I'm far away to be a C++ guru, so did i misunderstood something ?
is it for internal use only ?
or is it a compatibility problem ?


I didn't subscribe to the malling list, so put my email address in the CC
field, please ...


Thanks for the help,


Cedric.



More information about the Libstdc++ mailing list