diff options
author | Jose <jose@zeroc.com> | 2016-01-05 22:58:29 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2016-01-05 22:58:29 +0100 |
commit | 6d99d1133c8282227c4d68498d8bd1ec18c14446 (patch) | |
tree | 3ad5e778077eaa33401b8923a53295786c852263 /cpp/src/slice2cpp/Gen.cpp | |
parent | Fix ICE-6953 - Slice include path and / at end of symlink. (diff) | |
download | ice-6d99d1133c8282227c4d68498d8bd1ec18c14446.tar.bz2 ice-6d99d1133c8282227c4d68498d8bd1ec18c14446.tar.xz ice-6d99d1133c8282227c4d68498d8bd1ec18c14446.zip |
C++11 missing stream visitor for exceptions
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 77ff61ece97..c2d74616206 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -8342,8 +8342,17 @@ Slice::Gen::Cpp11StreamVisitor::visitModuleEnd(const ModulePtr& m) } bool -Slice::Gen::Cpp11StreamVisitor::visitExceptionStart(const ExceptionPtr&) +Slice::Gen::Cpp11StreamVisitor::visitExceptionStart(const ExceptionPtr& p) { + if(!p->isLocal()) + { + string scoped = p->scoped(); + H << nl << "template<>"; + H << nl << "struct StreamableTraits< " << fixKwd(scoped) << ">"; + H << sb; + H << nl << "static const StreamHelperCategory helper = StreamHelperCategoryUserException;"; + H << eb << ";" << nl; + } return false; } |