diff options
author | Bernard Normier <bernard@zeroc.com> | 2016-07-22 17:09:25 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2016-07-22 17:09:25 -0400 |
commit | 752e06b4eb63abb8a30bb958802eaedda72d3806 (patch) | |
tree | 7c2348544d202c310a55a62629abc4025daa03a5 /cpp/include/Ice/ExceptionHelpers.h | |
parent | Disable VS 2015 update 3 optimizer (diff) | |
download | ice-752e06b4eb63abb8a30bb958802eaedda72d3806.tar.bz2 ice-752e06b4eb63abb8a30bb958802eaedda72d3806.tar.xz ice-752e06b4eb63abb8a30bb958802eaedda72d3806.zip |
Added ICE_BUILDING_SRC to make builds
Ice::Dispatcher and Ice::LocalObject are now hidden with C++11
Reworked C++11 exception ice_clone, added ExceptionHelper
+ other C++ cleanups
Diffstat (limited to 'cpp/include/Ice/ExceptionHelpers.h')
-rw-r--r-- | cpp/include/Ice/ExceptionHelpers.h | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/cpp/include/Ice/ExceptionHelpers.h b/cpp/include/Ice/ExceptionHelpers.h index e4dfa076f34..04c37669f07 100644 --- a/cpp/include/Ice/ExceptionHelpers.h +++ b/cpp/include/Ice/ExceptionHelpers.h @@ -20,43 +20,29 @@ namespace Ice class LocalException; -template<typename T, typename B> class LocalExceptionHelper : public B +template<typename T, typename B> class LocalExceptionHelper : public IceUtil::ExceptionHelper<T, B> { public: - using B::B; - - LocalExceptionHelper() = default; + using IceUtil::ExceptionHelper<T, B>::ExceptionHelper; virtual std::string ice_id() const override { return T::ice_staticId(); } - - virtual void ice_throw() const override - { - throw static_cast<const T&>(*this); - } }; -template<typename T, typename B> class UserExceptionHelper : public B +template<typename T, typename B> class UserExceptionHelper : public IceUtil::ExceptionHelper<T, B> { public: - using B::B; - - UserExceptionHelper() = default; + using IceUtil::ExceptionHelper<T, B>::ExceptionHelper; virtual std::string ice_id() const override { return T::ice_staticId(); } - virtual void ice_throw() const override - { - throw static_cast<const T&>(*this); - } - protected: virtual void __writeImpl(Ice::OutputStream* os) const override |