From 27598f92dbf30455fe05fe206129fade205fc3dc Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Wed, 28 Sep 2016 16:53:43 -0700 Subject: [PATCH] Configuration option to allow Boost Exception to use std::shared_ptr instead of boost::shared_ptr. --- include/boost/exception/detail/shared_ptr.hpp | 17 +++++++++++++++++ include/boost/exception/get_error_info.hpp | 3 ++- include/boost/exception/info.hpp | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 include/boost/exception/detail/shared_ptr.hpp diff --git a/include/boost/exception/detail/shared_ptr.hpp b/include/boost/exception/detail/shared_ptr.hpp new file mode 100644 index 0000000..51febe8 --- /dev/null +++ b/include/boost/exception/detail/shared_ptr.hpp @@ -0,0 +1,17 @@ +//Copyright (c) 2006-2008 Emil Dotchevski and Reverge Studios, Inc. + +//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) + +#ifndef UUID_837060E885AF11E68DA91D15E31AC075 +#define UUID_837060E885AF11E68DA91D15E31AC075 + +#ifdef BOOST_EXCEPTION_MINI_BOOST +#include +namespace boost { namespace exception_detail { using std::shared_ptr; } } +#else +#include +namespace boost { namespace exception_detail { using boost::shared_ptr; } } +#endif + +#endif diff --git a/include/boost/exception/get_error_info.hpp b/include/boost/exception/get_error_info.hpp index 96be763..51a21ba 100644 --- a/include/boost/exception/get_error_info.hpp +++ b/include/boost/exception/get_error_info.hpp @@ -15,7 +15,8 @@ #include #include #include -#include +#include +#include namespace boost diff --git a/include/boost/exception/info.hpp b/include/boost/exception/info.hpp index f955e09..28a8ecf 100644 --- a/include/boost/exception/info.hpp +++ b/include/boost/exception/info.hpp @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #include