tomhamming
(Tom Hamming)
1
Say I’ve got this C++ class:
class MyClass {
public:
static inline constexpr NSString* _Nonnull StaticVal = @"StaticVal";
};
If I try to refer to this in Swift with C++ interop enabled, it can’t find it:
let str = MyClass.StaticVal //Type 'OtherClass' has no member 'StaticVal'
Is there another way to refer to this value from Swift? Or is this a todo item still on the C++ interop feature?
I’m on Xcode 26.1 (17B54).
tomhamming
(Tom Hamming)
2
It looks like constexpr members are only supported for numeric types?