AaronBallman wrote:

> Did WG14 considered some sort of macros for this feature? Otherwise I'd be 
> tempted to ask you to add something to `__has_feature`. I can see user 
> wanting to use `_Countof` when available and fallback to something else when 
> not.

There is weak consensus to add `stdcountof.h` which supplies a `countof` macro. 
However, there's no changes to the standard which add one (yet), so I figured 
that can be done in a follow-up.


https://github.com/llvm/llvm-project/pull/133125
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to