3.5.6. 类型转换

允许在指向 extern "C" 函数的指针和指向 extern "C++" 函数的指针之间进行类型转换。

示例


extern "C" void f();    // f’s type has extern "C" linkage

void (*pf)() = &f;      // pf points to an extern "C++" function

                        // error unless implicit conversion is allowed

Copyright © 2007 ARM Limited. All rights reserved. ARM DUI 0348AC
Non-Confidential