หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
'identifier1' : C linkage function cannot return C++ class 'identifier2'
Remarks
A function defined with C linkage cannot return a user-defined type.
Example
The following example generates C2526:
// C2526.cpp
// compile with: /c
template <typename T>
class A {};
extern "C" A<int> func() // C2526
{
return A<int>();
}