Compiler Error C2823
a typedef template is illegal
Templates are not allowed in typedef
definitions.
Example
The following sample generates C2823, and shows one way to fix it:
// C2823.cpp
template<class T>
typedef struct x {
T i; // C2823 can't use T, specify data type and delete template
int i; // OK
} x1;
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