
12 Feb
2006
12 Feb
'06
11:43 p.m.
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