id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 6953,Cannot serialialize some double values,dbaciu@…,Robert Ramey,"Hi, The code sample below throws a ""stream error"" exception at line ia >> double_back; My development environment is Visual Studio 10, boost version 1.43. Sorry, I have not tried a newer version of boost. The binary archive does not seem to handle doubles with lots of decimal places. #include #include void dummy() { string filename = ""dummy.data""; double someDouble = 0.98123024735605502; { std::ofstream ofs; ofs.open(filename.c_str()); boost::archive::binary_oarchive oa(ofs); oa << someDouble; } double double_back; { std::ifstream ifs; ifs.open(filename.c_str()); boost::archive::binary_iarchive ia(ifs); // following throws a ""stream error"" exception ia >> double_back; } } Thanks, Dragos ",Bugs,closed,To Be Determined,serialization,Boost 1.43.0,Problem,invalid,serialization,