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]
Other format: [Raw text]

Re: Missing TR1 cmath functions


This test case:

#include <tr1/regex>

int main(){
std::tr1::regex_traits<char> t;
t.isctype('c', 0);
return 0;
}

Fails to compile with:

c:\mingw4\bin\../lib/gcc/mingw32/4.3.0/include/c++/tr1_impl/regex: In member function 'bool std::tr1::regex_traits<_Ch_type>::isctype(_Ch_type, short unsigned int) const [with _Ch_type = char]':
t.cpp:6: instantiated from here
c:\mingw4\bin\../lib/gcc/mingw32/4.3.0/include/c++/tr1_impl/regex:542: error: array must be initialized with a brace-enclosed initializer
t.cpp:6: instantiated from here
c:\mingw4\bin\../lib/gcc/mingw32/4.3.0/include/c++/tr1_impl/regex:550: error: 'const class std::ctype<char>' has no member named 'isspace'
c:\mingw4\bin\../lib/gcc/mingw32/4.3.0/include/c++/tr1_impl/regex:552: error: array must be initialized with a brace-enclosed initializer


Just let me know when you want me to shut up! :-)

Cheers, John.


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