Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 874 Bytes

compiler-warning-level-1-c4572.md

File metadata and controls

28 lines (22 loc) · 874 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 1) C4572
Compiler Warning (level 1) C4572
11/04/2016
C4572
C4572
482dee5a-29bd-4fc3-b769-9dfd4cd2a964

Compiler Warning (level 1) C4572

[ParamArray] attribute is deprecated under /clr, use '...' instead

An obsolete style for specifying a variable argument list was used. When compiling for the CLR, use ellipsis syntax instead of xref:System.ParamArrayAttribute. For more information, see Variable Argument Lists (...) (C++/CLI).

Example

The following sample generates C4572.

// C4572.cpp
// compile with: /clr /W1
void Func([System::ParamArray] array<int> ^);   // C4572
void Func2(... array<int> ^){}   // OK

int main() {
   Func2(1, 2, 3);
}