Nota
O acesso a esta página requer autorização. Podes tentar iniciar sessão ou mudar de diretório.
O acesso a esta página requer autorização. Podes tentar mudar de diretório.
«Função» : uma função genérica ou uma função-membro de uma classe genérica não pode ter uma lista de parâmetros variáveis
Observações
As opções do compilador /clr:pure e /clr:safe foram preteridas no Visual Studio 2015 e não têm suporte no Visual Studio 2017.
Consulte Genéricos para obter mais informações.
Example
O exemplo a seguir gera C3268.
// C3268.cpp
// compile with: /clr:pure /c
generic <class ItemType>
void Test(ItemType item, ...) {} // C3268
// try the following line instead
// void Test(ItemType item) {}
generic <class ItemType2>
ref struct MyStruct { void Test(...){} }; // C3268
// try the following line instead
// ref struct MyStruct { void Test2(){} }; // OK