
binary_woarchive turns out to have no purpose. Hence it is not tested. I made it as result of symettry with the other archives thinking that it might have a purpose that never occurred to me. It might still have a purpose that hasn't occured to me so its still there. The warchive vs archive is relevant only for text based archives and it the archives vary according to which kind of characters they use in the text. Robert Ramey Hector C. wrote:
Hi all,
Can anyone give any ideas why uncommenting the #define will give me errors?
--Hector C.
//#define GiveMeErrors #include <fstream>
#ifdef GiveMeErrors # include
#else # include #endif int main(int argc, char * argv[]) { #ifdef GiveMeErrors std::wofstream off("test.txt", std::ios_base::binary); boost::archive::binary_woarchive oa((std::wostream &)off); #else std::ofstream off("test.txt", std::ios::binary); boost::archive::binary_oarchive oa((std::ostream &)off); #endif return 0; }
----------------------------------
____________________________________________________________________________________ Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. http://mobile.yahoo.com/go?refer=1GNXIC