On Jul 22, 2011, at 12:14 AM, John McCall wrote:
> On Jul 21, 2011, at 8:50 PM, Kelvin Chung wrote:
>> Also, relating to this, if x is an id (or SEL/Class), under clang, what should decltype(*x) resolve to? Or will that be banned in Objective-C++0x due to the lack of (at least using clang) defined type that the same expression resolves to under Objective-C?
> In Clang, decltype(*x) is a specific but otherwise-inexpressible type with the property that decltype(*x)* is id again. It mangles the same way as 'struct objc_object'.
When you mean "otherwise-inexpressible", do you mean that boost::remove_pointer<id>::type fails? (Does it do that now? I have to go run and check…) Or is it somehow not the same as decltype(*x) despite the fact that both decltype(*x)* and boost::remove_pointer<id>::type* would be id?
Also, does this mean that boost::is_same<objc_object, boost::remove_pointer<id>::type>::value is false or unevaluable in some compilers (where objc_object* is not convertible to id) while true in others? _______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden