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