From f29f86f65c32bc9dd2f0ecb53a615ea31b584b89 Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Tue, 15 Apr 2008 18:47:16 +0000 Subject: [PATCH] introduced boost/exception_ptr.hpp, using Boost Exception [SVN r44439] --- .../boost/{exception/cloning.hpp => exception_ptr.hpp} | 8 -------- test/cloning_test.cpp | 2 +- test/copy_exception_test.cpp | 2 +- test/throw_exception_test.cpp | 2 +- test/unknown_exception_test.cpp | 2 +- 5 files changed, 4 insertions(+), 12 deletions(-) rename include/boost/{exception/cloning.hpp => exception_ptr.hpp} (97%) diff --git a/include/boost/exception/cloning.hpp b/include/boost/exception_ptr.hpp similarity index 97% rename from include/boost/exception/cloning.hpp rename to include/boost/exception_ptr.hpp index f401f35..39e055b 100644 --- a/include/boost/exception/cloning.hpp +++ b/include/boost/exception_ptr.hpp @@ -109,14 +109,6 @@ boost return exception_ptr(c); } catch( - ... ) - { - } - try - { - throw; - } - catch( std::invalid_argument & e ) { return exception_detail::current_exception_std_exception(e); diff --git a/test/cloning_test.cpp b/test/cloning_test.cpp index 39bc756..5f2319a 100644 --- a/test/cloning_test.cpp +++ b/test/cloning_test.cpp @@ -3,7 +3,7 @@ //Distributed under the Boost Software License, Version 1.0. (See accompanying //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#include +#include #include struct diff --git a/test/copy_exception_test.cpp b/test/copy_exception_test.cpp index b61d0ac..721c7e4 100644 --- a/test/copy_exception_test.cpp +++ b/test/copy_exception_test.cpp @@ -3,7 +3,7 @@ //Distributed under the Boost Software License, Version 1.0. (See accompanying //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#include +#include #include struct diff --git a/test/throw_exception_test.cpp b/test/throw_exception_test.cpp index 197bfea..a20a88f 100644 --- a/test/throw_exception_test.cpp +++ b/test/throw_exception_test.cpp @@ -5,7 +5,7 @@ #include "helper2.hpp" #include -#include +#include #include typedef boost::error_info test_int; diff --git a/test/unknown_exception_test.cpp b/test/unknown_exception_test.cpp index 37ff54e..bccf3a6 100644 --- a/test/unknown_exception_test.cpp +++ b/test/unknown_exception_test.cpp @@ -3,7 +3,7 @@ //Distributed under the Boost Software License, Version 1.0. (See accompanying //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#include +#include #include #include