libcmdf
libcmdf copied to clipboard
reserved identifier violation
I would like to point out that a prefix like “cmdf__
” does eventually not fit to the expected naming convention of the C++ language standard.
Would you like to adjust your selection for unique names?
Hi @elfring, thank you for the comment.
The naming convention is indeed not very C++ friendly; it was done so because the library was meant to be used from C, and C++ support was only added afterwards.
Changing the naming convention to remove the cmdf__
prefix will break the C API, so I prefer not to do so, even at the expense of violating the standard's recommendations.
I am leaving this issue open, and any ideas will be greatly appreciated.
…, so I prefer not to do so,
Double underscores may be used at some places also for C identifiers.
even at the expense of violating the standard's recommendations.
:thought_balloon: Should such an implementation detail be reconsidered any more if questionable identifiers might be reused also for C++ software components?