Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55678 - trunk/boost/archive
From: ramey_at_[hidden]
Date: 2009-08-20 01:38:51


Author: ramey
Date: 2009-08-20 01:38:50 EDT (Thu, 20 Aug 2009)
New Revision: 55678
URL: http://svn.boost.org/trac/boost/changeset/55678

Log:
correct error in exception handling
Text files modified:
   trunk/boost/archive/xml_archive_exception.hpp | 7 ++++---
   1 files changed, 4 insertions(+), 3 deletions(-)

Modified: trunk/boost/archive/xml_archive_exception.hpp
==============================================================================
--- trunk/boost/archive/xml_archive_exception.hpp (original)
+++ trunk/boost/archive/xml_archive_exception.hpp 2009-08-20 01:38:50 EDT (Thu, 20 Aug 2009)
@@ -36,13 +36,14 @@
         xml_archive_tag_mismatch,
         xml_archive_tag_name_error
     } exception_code;
- exception_code code;
- xml_archive_exception(exception_code)
+ exception_code m_code;
+ xml_archive_exception(exception_code code) :
+ m_code(code)
     {}
     virtual const char *what( ) const throw( )
     {
         const char *msg;
- switch(code){
+ switch(m_code){
         case xml_archive_parsing_error:
             msg = "unrecognized XML syntax";
             break;


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