Re: [RFC] cleanup: make scoped_guard() to be return-friendly

From: Markus Elfring
Date: Mon Sep 30 2024 - 08:52:33 EST


>> * Would you ever like to avoid reserved identifiers in such source code?
>>   https://wiki.sei.cmu.edu/confluence/display/c/DCL37-C.+Do+not+declare+or+define+a+reserved+identifier
>
> we already don't care about this guideline (see __guard_ptr())

Please take another look at name conventions.
How do you think about to avoid that this software depends on undefined behaviour?

Regards,
Markus