Compiler Error C3269
'function' : a member-function of a managed type cannot be declared with '...'
Managed-class member functions cannot declare variable-length parameter lists.
The following sample generates C3269:
// C3269_2.cpp
// compile with: /clr
ref struct A
{
void func(int i, ...) // C3269
// try the following line instead
// void func(int i )
{
}
};
int main()
{
}
The following sample generates C3269:
// C3269.cpp
// compile with: /clr:oldSyntax
#using <mscorlib.dll>
__gc struct A
{
void func(int i, ...) // C3269
// try the following line instead
// void func(int i )
{
}
};
int main()
{
}