Muistiinpano
Tälle sivulle pääsy edellyttää valtuutusta. Voit yrittää kirjautua sisään tai vaihtaa hakemistoja.
Tälle sivulle pääsy edellyttää valtuutusta. Voit yrittää vaihtaa hakemistoja.
'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>();
}