From 14bcab725fd7a9248da56010b15b960f5a65c44d Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Thu, 22 Aug 2013 15:59:29 +0000 Subject: [PATCH] Attempting to fix mac compile error --- gtsam/base/types.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtsam/base/types.h b/gtsam/base/types.h index 2816e6567..108c21ce0 100644 --- a/gtsam/base/types.h +++ b/gtsam/base/types.h @@ -168,11 +168,12 @@ namespace gtsam { /// Construct with description string ThreadsafeException(const std::string& description) : dynamic_(false), description_(description) {} + /// Default destructor doesn't have the throw() + virtual ~ThreadsafeException() throw () {} + public: // Implement functions for tbb_exception #ifdef GTSAM_USE_TBB - virtual ~ThreadsafeException() throw () {} // Default destructor doesn't have the throw() - virtual tbb::tbb_exception* move() throw () { DERIVED* clone = ::new DERIVED(static_cast(*this)); clone->dynamic_ = true;