Boost logo

Boost Users :

Subject: [Boost-users] [serialization - eceptions] Could not catch exceptions
From: DaBoneCrack (haasi70_at_[hidden])
Date: 2012-07-24 05:54:48


Hi,

i could not catch boost serialization exceptions.
By default BOOST_NO_EXCEPTIONS is defined.
All attempts to undefine it has no effect.

What i try to do:

<code>
...
#include <boost/config.hpp>
#ifdef BOOST_NO_EXCEPTIONS
# undef BOOST_NO_EXCEPTIONS
#endif
...
more boost serialization headers included
....

try
{
   std::ifstream ifs("D:\\tmp.bin", std::ios::binary);
   boost::archive::binary_iarchive ia(ifs);
   int iIndex = 0;
   ia >> BOOST_SERIALIZATION_NVP("A", iIndex);
   ...
}
catch(std::exception)
{
   ...
}
</code>

Do i miss something to catch boost serialization exceptions?
I am using vs2008.

Thx for your help.

--
View this message in context: http://boost.2283326.n4.nabble.com/serialization-eceptions-Could-not-catch-exceptions-tp4633495.html
Sent from the Boost - Users mailing list archive at Nabble.com.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net