Re:[boost] Serialization compile errors on CW9

Miro Jurisic wrote:
I am trying to play with Serialization #18 on CodeWarrior 9, and I ran into the following problems:
We're open to suggestions.
meeroh My formatting:
Error : illegal explicit conversion from
to 'const char *' ...
I recently cleaned up and streamlined the implementation of the "dataflow iterators" in my local copy. I don't know if this will make the above disappear. I sort of doubt it. I'm suspicious of the transition from char to const char. I'll look at this.
This looks like a compiler issue in getting bool/int confused. Try Changing basic_text_oprimitive<std::ostream>( os, 0 != (flags & no_codecvt) ) At around line 63 in file text_oarchive.hpp to basic_text_oprimitive<std::ostream>( os, static_cast<bool>(0 != (flags & no_codecvt)) ) Robert Ramey

In article <20040418160047.656883147E@acme.west.net>, "Robert Ramey" <ramey@rrsd.com> wrote:
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.
That wasn't it. (And I am not sure what it is, as the error looks entirely bogus) meeroh -- If this message helped you, consider buying an item from my wish list: <http://web.meeroh.org/wishlist>
participants (3)
-
Miro Jurisic
-
Pavel Vozenilek
-
Robert Ramey