Boost logo

Boost Users :

From: René Gutschmidt (yg-boost-users_at_[hidden])
Date: 2002-05-24 08:26:27


Hi,

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<wchar_t>::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.)

Regards,

Rene


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net