On Thu, Jul 22, 2021 at 9:16 AM Norbert Lange <nolang...@gmail.com> wrote:
>

> It should be "supported" in the way that exceptions will *not*
> propagate in C libraries, and your program will call std::terminate
> should one callback throw an exception.
> Mark your callbacks with 'noexcept', statical analysis might be able
> to warn if you potentially create exceptions.

Yes, and we should make c this fact clear to the compiler annotating
sd-* libraries'  functions with __attribute__((__nothow__) like glibc
does.. however this will make headers uglier.
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to