Compiler Error C3698
'type' : cannot use this type as argument of 'operator'
A managed object was declared incorrectly.
The following sample generates C3698:
// C3698.cpp
// compile with: /clr
int main() {
array<int>^a = new array<int>^(20); // C3698
array<int>^a2 = gcnew array<int>(20); // OK
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for