[cfe-dev] Objective-C++11: concerns about adding static_assert support to @interface / @implementation?

James Walker via cfe-dev cfe-dev at lists.llvm.org
Fri Mar 8 17:07:21 PST 2019


On 3/8/19 4:51 PM, Aaron Ballman via cfe-dev wrote:

> I'd also like to see _Static_assert() supported in Objective-C and
> static_assert() supported in Objective-C++; I think they'd be useful.
> However, I'm not certain of the relationship between ObjC/C++ versions
> and the language standard version of C/C++ and whether there might be
> concerns there.

For what it's worth, I have successfully used static_assert in 
Objective-C++ code in Xcode 10.1.  I don't know whether the fact that 
it's Apple Clang is relevant.



More information about the cfe-dev mailing list