Boost logo

Boost :

From: Moore, Paul (Paul.Moore_at_[hidden])
Date: 1999-12-22 06:55:04

Sorry to trouble the group with this, but I have a trivial program which I'm
*sure* should work. But it doesn't on gcc (both mingw and Cygnus versions)
on Win32, so I'm now worried. My confidence in these matters has taken a
battering recently...

Can somebody confirm that

#include <string>

int main()
    std::char_traits<char> ctc;
    return 0;

should compile? Gcc gives an error

C:\Library>c++ -fhonor-std -I\Applications\Mingw32\lib3\include test.cpp
test.cpp: In function `int main()':
test.cpp:5: `char_traits' undeclared in namespace `std'
test.cpp:5: parse error before `>'

But char_traits is declared, in <string>, to be in std::, isn't it? The
standard says so...

Thanks, and sorry for the wasted bandwidth,

Boost list run by bdawes at, gregod at, cpdaniel at, john at