Compiler Error C2469
'operator': cannot allocate 'type' object
An operator was passed an invalid type.
The following sample generates C2469:
// C2469.cpp
int main() {
int *i = new void; // C2469
int *i = new int; // OK
}
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
'operator': cannot allocate 'type' object
An operator was passed an invalid type.
The following sample generates C2469:
// C2469.cpp
int main() {
int *i = new void; // C2469
int *i = new int; // OK
}