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

scala - Play Framework - how to bind form to a session field -

Django Celery - running scheduled tasks -

perl - 'Unquoted string ".." may clash with future reserved word' but only when package is used -