From 741f0ab4e3e62f93c6bef6e59e671175cb7d7271 Mon Sep 17 00:00:00 2001 From: Alex Cunningham Date: Thu, 22 Aug 2013 14:10:01 +0000 Subject: [PATCH] Added "throw()" to tbb derived exception classes so that library compiles --- gtsam/base/types.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtsam/base/types.h b/gtsam/base/types.h index dd867750b..2816e6567 100644 --- a/gtsam/base/types.h +++ b/gtsam/base/types.h @@ -171,7 +171,9 @@ namespace gtsam { public: // Implement functions for tbb_exception #ifdef GTSAM_USE_TBB - virtual tbb::tbb_exception* move() { + 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; return clone;