Hi Jarl,
I tried to serialize the boost class boost::uuids::uuid . First I thought its pretty simple, because it boils down to serialize an array of boost::uint8_t :
Code: Select all
namespace boost {
namespace uuids {
struct uuid
{
// or should it be array<uint8_t, 16>
uint8_t data[16];
};
}
}
Code: Select all
#include <boost/uuid/uuid.hpp>
#include <SF/Archive.hpp>
namespace SF
{
void serialize( SF:Archive &ar, boost::uuids::uuid &u )
{
ar & u.data ;
}
}
(IMHO the best way to solve this would be to change the definition in boost::uuids::uuid as the author of this module already suggested but this would last far too long ...)
Regards,
Volker