diff options
Diffstat (limited to 'cpp/test/include/TestCommon.h')
-rw-r--r-- | cpp/test/include/TestCommon.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/test/include/TestCommon.h b/cpp/test/include/TestCommon.h index 7ec0469f25b..e8605f5c1b4 100644 --- a/cpp/test/include/TestCommon.h +++ b/cpp/test/include/TestCommon.h @@ -161,7 +161,12 @@ public: return "::TestFailedException"; } -#ifndef ICE_CPP11_MAPPING +#ifdef ICE_CPP11_MAPPING + virtual IceUtil::Exception* ice_cloneImpl() const + { + return new TestFailedException(*this); + } +#else virtual TestFailedException* ice_clone() const { return new TestFailedException(*this); |