Hi,
I just wanted to add another handy shortcut. Instead of:
std::ifstream infile("file.bin");
cxxtools::bin::Deserializer deserializer(infile);
deserializer.deserialize(objects);
you may write analogous to the serialization:
std::ifstream infile("file.bin");
infile >> cxxtools::bin::Bin(objects);
The cxxtools::bin::Bin creates a proxy object, which holds a reference
to the passed object and whose istream operator reads binary seriailzed
stuff from the istream to fill in that object.
Tommi
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general