boost-serialization Questions
5
I serialize multiple objects into a binary archive with Boost.
When reading back those objects from a binary_iarchive, is there a way to know how many objects are in the archive or simply a way to ...
Jowers asked 12/7, 2011 at 14:24
3
Solved
I have a template class that I serialize (call it C), for which I want to specify a version for boost serialization. As BOOST_CLASS_VERSION does not work for template classes. I tried this:
namesp...
Gherkin asked 17/9, 2008 at 12:26
3
Solved
Does boost support serialization of c++11's std::tuple?
I couldn't find a tuple.hpp header file at /boost/serialization/
I'm using boost 1.52.0 (happy to upgrade if need be, but it seems like th...
Liminal asked 7/2, 2013 at 5:35
2
I have a C++ library that uses Boost.Serialization. I'm creating Python bindings for this library using Boost.Python. It's fairly clear how to make a pickle suite for Boost.Python that uses Boost.S...
Mont asked 2/9, 2011 at 22:43
5
Solved
Does the boost serialization library support serialization of std::unique_ptr?
I tried to compile the code below, but if I include the
boost::archive::text_oarchive oa(ofs); oa << g; line,
...
Burnish asked 16/10, 2012 at 12:58
3
Solved
I have tried providing getters of class A for my non-member serialize() function` since accessing from members is private.
template<typename T>
class A
{
public:
A(const T& id) : m_id(i...
Diphyodont asked 2/6, 2015 at 11:32
11
Solved
Does anyone with experience with these libraries have any comment on which one they preferred? Were there any performance differences or difficulties in using?
Glossy asked 30/6, 2009 at 0:2
2
Solved
Following this question : Boost serialize child class
I'm trying to support forward compatibility for my archive generated with boost serialization but i'm having trouble reading a newer archive wi...
Fielding asked 28/1, 2016 at 8:9
3
How do I know that I can safely upgrade Boost Serialization Library on a production system without breaking compatibility with the existing data ? Is there any test that I should perform in order t...
Lorrianelorrie asked 9/6, 2010 at 8:51
4
It seems that boost serialization can't restore the value Nan and inf from text-based archives.
The the program will terminate unless you handle the archive_exception in this case, any solutions t...
Emplace asked 24/2, 2015 at 13:8
0
I am attempting to write a function that uses boost::serialize if an object can be serialized, with a fallback if the object cannot be written with boost::serialize. Is there some template-based wa...
Bergmans asked 4/9, 2016 at 20:46
3
Solved
When compiling a simple test of Boost Serialization:
class Test
{
protected:
int Num;
friend class boost::serialization::access;
template <class Archive>
void serialize(Archive & ar...
Onset asked 2/2, 2014 at 7:46
2
Solved
Is it possible to construct objects from directly from the archive?
Something like this...
// Non-working pseudo code
struct Foo {
BOOST_SERIALIZATION_SPLIT_MEMBER();
std::vector<int> dat...
Calyces asked 6/3, 2012 at 18:26
1
Solved
As this link stated for defining traits for a template class we should define it manually or we extract our class from the trait class. But I want to make this process automatically, for this reaso...
Chaves asked 14/2, 2016 at 12:33
2
I've been handed a document that defines a set of messages that are transmitted and received over a serial communications channel. I'd like to take the incoming messages and deserialize them into o...
Susy asked 8/2, 2012 at 22:11
1
I'm trying to (de)serialize a polymorphic vector, but have different issues with different attempts. The entire order of events are:
Serialize a Polymorphic Vector on Server Side
Send the seriali...
Arnulfoarny asked 17/7, 2013 at 11:12
7
Solved
I know that there is a Boost module for serialization of boost::shared_ptr, but I cannot find anything for std::shared_ptr.
Also, I don't know how to implement it easily. I'm afraid that the follo...
Synagogue asked 13/11, 2011 at 22:21
1
Solved
I have base class User which is serializable :
class User
{
public:
User();
std::string GetLogin() const;
void SetLogin(std::string login);
protected:
std::string mLogin;
friend class boost...
Vault asked 27/10, 2015 at 10:12
4
Solved
I'm looking for a (working) example for externally serializing a class-structure in a DLL. Currently I'm not able to find any examples for that. The Boost documentation is just stating some macros,...
Annice asked 8/2, 2012 at 7:2
1
Solved
I have a serialized structure, which is being sent via socket. I need to read it in chunks, since one of its fields contains the size of the data remaining: I need to read first few bytes, find out...
Harwood asked 8/3, 2015 at 17:38
2
Solved
I am trying to Serialize a class.
Class definition:
class StartPeerSessionRequest {
public:
StartPeerSessionRequest();
virtual ~StartPeerSessionRequest();
void composeRequestwithHardCodeValues...
Anemograph asked 24/10, 2014 at 20:57
6
Solved
I'm trying to serialize a pointer to a polymorphic class Shape. So I need to use the BOOST_CLASS_EXPORT macro to define a GUID for each subclass. The problem: where to put it?
Let me show a minima...
Venenose asked 3/8, 2010 at 12:16
2
Solved
I am trying to compile an android app using boost 1-49's serialization library. Specifically, this project had some convenient scripts to get the job done: https://github.com/MysticTreeGames/Boost-...
Scrap asked 17/1, 2013 at 14:46
1
I need to do performance testing of a library written in c++. The library consist of few sets of structures. I have already done the serialization test for these class but not sure how to do perfom...
Mortise asked 9/5, 2014 at 18:10
0
I'm trying to run the unit test using boost but it gives me error when I run test ->
" unknown location(0): fatal error in "MyCheckTest":"
Error even does not mention the line which test is failin...
Vigilante asked 24/4, 2014 at 7:40
1 Next >
© 2022 - 2024 — McMap. All rights reserved.