diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-11-09 15:07:22 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-11-09 15:07:22 +0000 |
commit | aaf01c6aa0aac4d8ac6c32eea9e221f9f5d4930d (patch) | |
tree | 1980eff298c3bd35f71f67421f6d0bda4ce634ec /cpp/src/slice2cppe/Gen.cpp | |
parent | Fixes for relication test failure on Solaris (diff) | |
download | ice-aaf01c6aa0aac4d8ac6c32eea9e221f9f5d4930d.tar.bz2 ice-aaf01c6aa0aac4d8ac6c32eea9e221f9f5d4930d.tar.xz ice-aaf01c6aa0aac4d8ac6c32eea9e221f9f5d4930d.zip |
Derive from std::exception
Diffstat (limited to 'cpp/src/slice2cppe/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cppe/Gen.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/src/slice2cppe/Gen.cpp b/cpp/src/slice2cppe/Gen.cpp index 703965d4f70..32757b02a76 100644 --- a/cpp/src/slice2cppe/Gen.cpp +++ b/cpp/src/slice2cppe/Gen.cpp @@ -503,6 +503,7 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p) } H << allTypes << epar << ';'; } + H << nl << "virtual ~" << name << "() throw();"; H << sp; if(p->isLocal()) @@ -569,6 +570,11 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p) C << eb; } + C << sp << nl; + C << scoped.substr(2) << "::~" << name << "() throw()"; + C << sb; + C << eb; + H << nl << "virtual ::std::string ice_name() const;"; string flatName = p->flattenedScope() + p->name() + "_name"; |