i have problems with the file c_regex_traits.cpp. I work under CodeWarrior 6/7 with a Macintosh. These problem ist with boost 1.25.1,1.26.
template <class charT> unsigned int BOOST_REGEX_CALL re_get_message(charT* buf, unsigned int len, unsigned int id) { unsigned int size = _re_get_message((char*)0, 0, id); if(len < size) return size; boost::scoped_array<char> cb(new char[size]); _re_get_message(cb.get(), size, id); size = boost::c_regex_traits
::strwiden(buf, len, cb.get()); return size; } inline unsigned int BOOST_REGEX_CALL re_get_message(char* buf, unsigned int len, unsigned int id) { return _re_get_message(buf, len, id); }
Is that a known problem? Do you know a workaround? (Renaming one of the 're_get_message()' functions does the job, but I'm not sure about the implications.)
Bad ones, those functions are *supposed* to be overloaded. Looking at it though, I don't think the first of these need be a template, what happens if you change: template <class charT> unsigned int BOOST_REGEX_CALL re_get_message(charT* buf, unsigned int to unsigned int BOOST_REGEX_CALL re_get_message(wchar_t* buf, unsigned int regards, John Maddock http://ourworld.compuserve.com/homepages/john_maddock/index.htm