diff options
author | Jose <jose@zeroc.com> | 2015-12-28 14:15:32 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2015-12-28 15:09:27 +0100 |
commit | 0796f3d662270be771663c0579fde946a7b863d1 (patch) | |
tree | 7315f892b62d042941fa0607386e2e6b991967ae /cpp/test/Ice/objects/TestIntfI.cpp | |
parent | Fix binary compatibility issue with previous fix (diff) | |
download | ice-3.6.1-msvc2015.tar.bz2 ice-3.6.1-msvc2015.tar.xz ice-3.6.1-msvc2015.zip |
Object factory registration fix for VS 2015v3.6.1-msvc2015
Diffstat (limited to 'cpp/test/Ice/objects/TestIntfI.cpp')
-rw-r--r-- | cpp/test/Ice/objects/TestIntfI.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/cpp/test/Ice/objects/TestIntfI.cpp b/cpp/test/Ice/objects/TestIntfI.cpp new file mode 100644 index 00000000000..e4e393b1b3e --- /dev/null +++ b/cpp/test/Ice/objects/TestIntfI.cpp @@ -0,0 +1,33 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2015 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +#include <Ice/Ice.h> +#include <TestI.h> +#include <Derived.h> +#include <DerivedEx.h> + +using namespace Test; + +BasePtr +TestIntfI::opDerived(const Ice::Current&) +{ + DerivedPtr d = new Derived(); + d->theS.str = "S.str"; + d->str = "str"; + d->b = "b"; + return d; +} + +void +TestIntfI::throwDerived(const Ice::Current&) +{ + DerivedEx ex; + ex.reason = "reason"; + throw ex; +} |