$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r84942 - trunk/libs/iostreams/src
From: dnljms_at_[hidden]
Date: 2013-07-02 17:34:09
Author: danieljames
Date: 2013-07-02 17:34:09 EDT (Tue, 02 Jul 2013)
New Revision: 84942
URL: http://svn.boost.org/trac/boost/changeset/84942
Log:
Rethrow exception without slicing. Fixes #6036.
Maybe it should use `catch(...)`, that's what iostreams uses everywhere else.
Text files modified: 
   trunk/libs/iostreams/src/mapped_file.cpp |     4 ++--                                    
   1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/libs/iostreams/src/mapped_file.cpp
==============================================================================
--- trunk/libs/iostreams/src/mapped_file.cpp	Tue Jul  2 09:51:55 2013	(r84941)
+++ trunk/libs/iostreams/src/mapped_file.cpp	2013-07-02 17:34:09 EDT (Tue, 02 Jul 2013)	(r84942)
@@ -344,12 +344,12 @@
 {
     try {
         try_map_file(p);
-    } catch (const std::exception& e) {
+    } catch (const std::exception&) {
         if (p.hint) {
             p.hint = 0;
             try_map_file(p);
         } else {
-            boost::throw_exception(e);
+            throw;
         }
     }
 }