diff options
author | Benoit Foucher <benoit@zeroc.com> | 2017-01-27 10:28:45 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2017-01-27 10:28:45 +0100 |
commit | 0649ccb3841057e08dd42d6a1125b18c4b74cf97 (patch) | |
tree | f87b18662b117ca012bc48c5ed08e73b9de16fdc /cpp/src/slice2cpp | |
parent | PHP mapping use Namespace builds by default (diff) | |
download | ice-0649ccb3841057e08dd42d6a1125b18c4b74cf97.tar.bz2 ice-0649ccb3841057e08dd42d6a1125b18c4b74cf97.tar.xz ice-0649ccb3841057e08dd42d6a1125b18c4b74cf97.zip |
Fix to generate ICE_NOEXCEPT instead of throw() with the C++98 mapping
Diffstat (limited to 'cpp/src/slice2cpp')
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index b23a22bad3f..ab1e736d071 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -2987,7 +2987,7 @@ Slice::Gen::ObjectVisitor::visitOperation(const OperationPtr& p) argsAMD += "current)"; string isConst = ((p->mode() == Operation::Nonmutating) || p->hasMetaData("cpp:const")) ? " const" : ""; - string noExcept = (cl->isLocal() && p->hasMetaData("cpp:noexcept")) ? " throw()" : ""; + string noExcept = (cl->isLocal() && p->hasMetaData("cpp:noexcept")) ? " ICE_NOEXCEPT" : ""; bool amd = !cl->isLocal() && (cl->hasMetaData("amd") || p->hasMetaData("amd")); string deprecateSymbol = getDeprecateSymbol(p, cl); |