From: Robert Ramey (ramey_at_[hidden])
Date: 2006-02-12 18:43:12


troy d. straszheim wrote:

> template<class Archive, class OStream>
> BOOST_ARCHIVE_OR_WARCHIVE_DECL(void)
> basic_binary_oprimitive<Archive, OStream>::save(const char * s)
> {
> std::size_t l = std::strlen(s);
> this->This()->save(l);
> save_binary(s, l);
> }
>
> One can fix this by implementing one's own portable binary primitives
> (which is what we've done), but that does involve duplicating a lot of
> library code in order to change a few lines. The special type for
> collection size (if applied consistently) seems cleaner.

I'm curious as to what problem using std::size_t created. That is,
why did you feel you had to change it.

Robert Raamey