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


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

string_char_traits or char_traits



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.


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