Boost logo

Boost-Commit :

From: pdimov_at_[hidden]
Date: 2008-05-02 12:49:35


Author: pdimov
Date: 2008-05-02 12:49:34 EDT (Fri, 02 May 2008)
New Revision: 45027
URL: http://svn.boost.org/trac/boost/changeset/45027

Log:
Fix throwing enums instead of archive_exceptions.
Text files modified:
   trunk/boost/archive/impl/xml_iarchive_impl.ipp | 2 +-
   trunk/boost/archive/impl/xml_wiarchive_impl.ipp | 2 +-
   2 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/archive/impl/xml_iarchive_impl.ipp
==============================================================================
--- trunk/boost/archive/impl/xml_iarchive_impl.ipp (original)
+++ trunk/boost/archive/impl/xml_iarchive_impl.ipp 2008-05-02 12:49:34 EDT (Fri, 02 May 2008)
@@ -143,7 +143,7 @@
 xml_iarchive_impl<Archive>::load_override(class_name_type & t, int){
     const std::string & s = gimpl->rv.class_name;
     if(s.size() > BOOST_SERIALIZATION_MAX_KEY_SIZE - 1)
- boost::throw_exception(archive_exception::invalid_class_name);
+ boost::throw_exception( archive_exception( archive_exception::invalid_class_name ) );
     char * tptr = t;
     std::memcpy(tptr, s.data(), s.size());
     tptr[s.size()] = '\0';

Modified: trunk/boost/archive/impl/xml_wiarchive_impl.ipp
==============================================================================
--- trunk/boost/archive/impl/xml_wiarchive_impl.ipp (original)
+++ trunk/boost/archive/impl/xml_wiarchive_impl.ipp 2008-05-02 12:49:34 EDT (Fri, 02 May 2008)
@@ -136,7 +136,7 @@
 xml_wiarchive_impl<Archive>::load_override(class_name_type & t, int){
     const std::wstring & ws = gimpl->rv.class_name;
     if(ws.size() > BOOST_SERIALIZATION_MAX_KEY_SIZE - 1)
- boost::throw_exception(archive_exception::invalid_class_name);
+ boost::throw_exception( archive_exception( archive_exception::invalid_class_name ) );
     copy_to_ptr(t, ws);
 }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk