This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
string_char_traits or char_traits
- To: libstdc++ at gcc dot gnu dot org
- Subject: string_char_traits or char_traits
- From: Valignat Cedric <valignat at nevrax dot com>
- Date: Mon, 29 Jan 2001 12:48:42 +0100
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.