Kompilatorfel C3530

"auto" kan inte kombineras med någon annan typspecificerare

Anmärkningar

En typspecificerare används med nyckelordet auto .

Så här åtgärdar du det här felet

  1. Använd inte en typspecificerare i en variabeldeklaration som använder nyckelordet auto .

Example

I följande exempel returneras C3530 eftersom variabeln x deklareras med både nyckelordet auto och typen int, och eftersom exemplet kompileras med /Zc:auto.

// C3530.cpp
// Compile with /Zc:auto
int main()
{
   auto int x;   // C3530
   return 0;
}

Se även

automatiskt nyckelord