2 Sep
2005
2 Sep
'05
7:39 a.m.
Sebastien Gerega wrote:
int main(){
std::ofstream oFSBS("/home/Seb/Code/testData/results.dat"); boost::archive::text_oarchive oA(oFSBS); ResData temp("TEST", 1, 1); temp.setSAS(5555); oA << temp;
You need to use const ResData& work_around = temp; oA << temp; For 1.33, Robert decided that you can't save non-const objects like this. Many objected, but we failed to persuade him. - Volodya