|
Boost : |
From: Sergey Skorniakov (s.skorniakov_at_[hidden])
Date: 2007-06-05 09:43:22
basic_binary_iprimitive.hpp, basic_binary_iprimitive<Archive, Elem, Tr>::load_binary:
std::streamsize s = count / sizeof(Elem);
std::streamsize scount = m_sb.sgetn(
static_cast<Elem *>(address),
s
);
if(count != static_cast<std::size_t>(s))
boost::throw_exception(
archive_exception(archive_exception::stream_error)
);
If sizeof(Elem) != 1, exception will be thrown. Looks like wide binary iarchives was never been tested.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk