c++ - What is the syntax for using __bridge cast in conjunction with static_cast? -


I tried the following, but the compiler does not understand:

  / / Foo.mm id anObjOfTypeFoo; Foo * obj = (Foo *) anObjOfTypeFoo; // Error: __bridge Foo * obj = (__bridge Foo *) anObjOfTypeFoo; Should use; // OKA FU * OzZ = Static_Cast & lt; __ Bridge Foo * & gt; (AnObjOfTypeFoo); // error Foo * obj = __bridge (static_cast & lt; Foo * & gt; (anObjOfTypeFoo)); // error  

Since the purpose-C code is one. For the Mm compilation unit, C ++ is compiled effectively by the compiler, so there should not be a problem in pulling the C ++ keypad. Can anyone put light on it?

Very bad static_cast comes from C ++, this does not understand the purpose-the classes you NSString to NSMutableString can not even be inserted.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -