|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r48759 - trunk/boost/archive/impl
From: ramey_at_[hidden]
Date: 2008-09-12 16:24:39
Author: ramey
Date: 2008-09-12 16:24:38 EDT (Fri, 12 Sep 2008)
New Revision: 48759
URL: http://svn.boost.org/trac/boost/changeset/48759
Log:
Eliminate throw from destructor
Text files modified:
trunk/boost/archive/impl/basic_binary_iprimitive.ipp | 11 ++++++-----
trunk/boost/archive/impl/basic_binary_oprimitive.ipp | 11 ++++++-----
2 files changed, 12 insertions(+), 10 deletions(-)
Modified: trunk/boost/archive/impl/basic_binary_iprimitive.ipp
==============================================================================
--- trunk/boost/archive/impl/basic_binary_iprimitive.ipp (original)
+++ trunk/boost/archive/impl/basic_binary_iprimitive.ipp 2008-09-12 16:24:38 EDT (Fri, 12 Sep 2008)
@@ -185,11 +185,12 @@
int result = static_cast<detail::input_streambuf_access<Elem, Tr> &>(
m_sb
).sync();
- if(0 != result){
- boost::serialization::throw_exception(
- archive_exception(archive_exception::stream_error)
- );
- }
+ //destructor can't throw !
+ //if(0 != result){
+ // boost::serialization::throw_exception(
+ // archive_exception(archive_exception::stream_error)
+ // );
+ //}
}
} // namespace archive
Modified: trunk/boost/archive/impl/basic_binary_oprimitive.ipp
==============================================================================
--- trunk/boost/archive/impl/basic_binary_oprimitive.ipp (original)
+++ trunk/boost/archive/impl/basic_binary_oprimitive.ipp 2008-09-12 16:24:38 EDT (Fri, 12 Sep 2008)
@@ -155,11 +155,12 @@
int result = static_cast<detail::output_streambuf_access<Elem, Tr> &>(
m_sb
).sync();
- if(0 != result){
- boost::serialization::throw_exception(
- archive_exception(archive_exception::stream_error)
- );
- }
+ //destructor can't throw
+ //if(0 != result){
+ // boost::serialization::throw_exception(
+ // archive_exception(archive_exception::stream_error)
+ // );
+ //}
}
} // namespace archive
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