[Github-comments] [geany/geany] Plugins: Needless forward declaration of geany_load_module() (#1215)

elextr notifications at xxxxx
Wed Sep 7 01:59:47 UTC 2016


@codebrainz all declarations and the definition need to have the same exception specification in C++. 

To quote the surprisingly lucid standard clause "If any declaration of a function has an exception-specification that is not a noexcept-specification allowing all exceptions, all declarations, including the definition and any explicit specialization, of that function shall have a compatible exception-specification."

That was the OP wasn't it?

@b4n  the standard requires an `extern "c"` function to have a C compatible ABI, and it does not disallow `noexcept` so if the compiler allows `noexcept` then it must not change the ABI. (or the compiler has a bug)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1215#issuecomment-245152660
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160906/d4889ffd/attachment.html>


More information about the Github-comments mailing list