
18 Aug
2007
18 Aug
'07
7:19 a.m.
Hi! Hector C. schrieb:
Hi all,
Can anyone give any ideas why uncommenting the #define will give me errors?
Right now I don't know. But here
std::wofstream off("test.txt", std::ios_base::binary); boost::archive::binary_woarchive oa((std::wostream &)off);
and
std::ofstream off("test.txt", std::ios::binary); boost::archive::binary_oarchive oa((std::ostream &)off);
here you are casting unnecessarily. Also do not use these kind of casts. Try using "static_cast<Targettype>(what-to-cast)". If that fails think about what you are doing. Frank