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


Hello Kirk!
Thank you for contacting us.
We already have such issue in YouTrack:
You can follow this request and vote for it.
Thank you!


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

Thanks for the link!


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

Permanently deleted user

Actually is filed for something different - it's for code generators like 'Generate constructor' to insert 'noexcept' where it makes sense.

I filed 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!


Please sign in to leave a comment.