From ac5ebbcd453422093e79aa28dbb2022c42d60b53 Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Tue, 10 Sep 2013 05:44:02 +0000 Subject: [PATCH] Ticket #8947, thanks Maciej Florek [SVN r85635] --- include/boost/exception/detail/exception_ptr.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/boost/exception/detail/exception_ptr.hpp b/include/boost/exception/detail/exception_ptr.hpp index ff2f677..e927398 100644 --- a/include/boost/exception/detail/exception_ptr.hpp +++ b/include/boost/exception/detail/exception_ptr.hpp @@ -119,10 +119,12 @@ boost { Exception ba; exception_detail::clone_impl c(ba); +#ifndef BOOST_EXCEPTION_DISABLE c << throw_function(BOOST_CURRENT_FUNCTION) << throw_file(__FILE__) << throw_line(__LINE__); +#endif static exception_ptr ep(shared_ptr(new exception_detail::clone_impl(c))); return ep; }