Issues with noexcept?

Neither "Move Implementation" nor "Generate Implementation" pull noexcept into the cpp file. I use VS 2015, and I'm pretty sure I'm not doing anything wrong, but I'd be happy to take any advice if I am!

Repro steps:
1. Add any trivial method in .h file: void Test() const noexcept;
2. Use "Generate Implementation" refactoring
3. Goto cpp file and see that the method stub is void Test() const {}

Compiling fails with C2382: Different exception specifications

4 comments
Comment actions Permalink

Hello Kirk!
Thank you for contacting us.
We already have such issue in YouTrack: https://youtrack.jetbrains.com/issue/RSCPP-12623
You can follow this request and vote for it.
Thank you!

0
Comment actions Permalink

Wow, how did I miss that? I thought I trawled through the whole RSCPP issue board before posting.

Thanks for the link!

0
Comment actions Permalink

Kirk,
please feel free to contact us in case of any questions or problems.
Thank you!

0
Comment actions Permalink

Actually https://youtrack.jetbrains.com/issue/RSCPP-12623 is filed for something different - it's for code generators like 'Generate constructor' to insert 'noexcept' where it makes sense.

I filed https://youtrack.jetbrains.com/issue/RSCPP-15473 for the noexcept issue - the cause for it that internal R++ function types do not yet store information about the throw specifications. Thanks for the report!

0

Please sign in to leave a comment.