
Roman,
Even better, take a look at portable_binary_archive in the file vault: http://preview.tinyurl.com/5j46aq. It correctly handles floating point types as well as integer types.
I'm looking at the portable_binary_archive contents you pointed me to, and it seems to be a bit problematic. I see it was written by people mostly using MS Visual Studio (I guess from the #pragma once line), and it seems the code through a lot of warnings under gcc. a lot of signed / unsigned comparison warnings for example, or checking if an unsigned value is negative. (it also checks on the BOOST_VERSION macro without including boost/versio.hpp). I wonder how stable this code is, and if it is really used among multiple systems. Are you actually using this code? Akos