mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #1515
ada7c7da
portable serializer: tests added (kenshi84)f390a0e2
portable serializer: make signerd/unsigned tx portable, ignore archive version checking (kenshi84)
This commit is contained in:
commit
ba9744d400
12 changed files with 641 additions and 61 deletions
|
@ -321,6 +321,8 @@ portable_binary_iarchive::init(unsigned int flags){
|
|||
boost::archive::library_version_type input_library_version;
|
||||
* this >> input_library_version;
|
||||
|
||||
// ignore archive version checking
|
||||
/*
|
||||
// extra little .t is to get around borland quirk
|
||||
if(boost::archive::BOOST_ARCHIVE_VERSION() < input_library_version)
|
||||
boost::serialization::throw_exception(
|
||||
|
@ -328,6 +330,7 @@ portable_binary_iarchive::init(unsigned int flags){
|
|||
boost::archive::archive_exception::unsupported_version
|
||||
)
|
||||
);
|
||||
*/
|
||||
|
||||
#if BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3205))
|
||||
this->set_library_version(input_library_version);
|
||||
|
|
|
@ -277,10 +277,14 @@ portable_binary_oarchive::init(unsigned int flags) {
|
|||
boost::archive::BOOST_ARCHIVE_SIGNATURE()
|
||||
);
|
||||
* this << file_signature;
|
||||
// ignore archive version checking
|
||||
const boost::archive::library_version_type v{};
|
||||
/*
|
||||
// write library version
|
||||
const boost::archive::library_version_type v(
|
||||
boost::archive::BOOST_ARCHIVE_VERSION()
|
||||
);
|
||||
*/
|
||||
* this << v;
|
||||
}
|
||||
save(static_cast<unsigned char>(m_flags >> CHAR_BIT));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue