
18 Apr
2004
18 Apr
'04
7:12 p.m.
namespace detail { #if BOOST_WORKAROUND... typedef ::mbstate_t mbstate_t; #else typedef std::mbstate_t mbstate_t; #endif }
and then use detail::mbstate_t inside the affected boost header files. This will make the boost files compatible with each other, and users of those headers will be able to use whichever one of ::mbstate_t or std::mbstate_t their compiler provides.
I had this problem with BCB too. The solution may be likely used here. Regex (boost/regex/config.hpp) has code to deal with it. /Pavel