summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Exception.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/Exception.cpp')
-rw-r--r--cpp/src/Ice/Exception.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/cpp/src/Ice/Exception.cpp b/cpp/src/Ice/Exception.cpp
index b24d64a6b53..d9d1f929fc1 100644
--- a/cpp/src/Ice/Exception.cpp
+++ b/cpp/src/Ice/Exception.cpp
@@ -145,11 +145,13 @@ Ice::LocalException::LocalException(const char* file, int line) :
{
}
+Ice::LocalException::~LocalException()
#ifndef ICE_CPP11_COMPILER
-Ice::LocalException::~LocalException() throw()
+ throw()
+#endif
{
+ // Out of line to avoid weak vtable
}
-#endif
namespace
{
@@ -172,11 +174,12 @@ Ice::SystemException::SystemException(const char* file, int line) :
{
}
+Ice::SystemException::~SystemException()
#ifndef ICE_CPP11_COMPILER
-Ice::SystemException::~SystemException() throw()
+ throw()
+#endif
{
}
-#endif
namespace
{