diff --git a/docs/error-messages/compiler-errors-2/compiler-error-c2998.md b/docs/error-messages/compiler-errors-2/compiler-error-c2998.md index 78bb229325..f140107112 100644 --- a/docs/error-messages/compiler-errors-2/compiler-error-c2998.md +++ b/docs/error-messages/compiler-errors-2/compiler-error-c2998.md @@ -1,21 +1,14 @@ --- -description: "Learn more about: Compiler Error C2998" title: "Compiler Error C2998" -ms.date: "11/04/2016" +description: "Learn more about: Compiler Error C2998" +ms.date: 06/29/2025 f1_keywords: ["C2998"] helpviewer_keywords: ["C2998"] -ms.assetid: 8193d491-b5d9-4477-acb1-cf166889c070 --- # Compiler Error C2998 -'identifier' : cannot be a template definition +> '*identifier*': cannot be a template definition -The compiler could not process the syntax used in the template definition. +## Remarks -The following sample generates C2998: - -```cpp -// C2998.cpp -// compile with: /c -template int x = 1018; // C2998 -``` +The compiler could not process the syntax used in the template definition. diff --git a/docs/error-messages/compiler-errors-2/compiler-errors-c2900-through-c3499.md b/docs/error-messages/compiler-errors-2/compiler-errors-c2900-through-c3499.md index 2b2fb65959..f426601753 100644 --- a/docs/error-messages/compiler-errors-2/compiler-errors-c2900-through-c3499.md +++ b/docs/error-messages/compiler-errors-2/compiler-errors-c2900-through-c3499.md @@ -113,7 +113,7 @@ The articles in this section of the documentation explain a subset of the error | [Compiler error C2995](compiler-error-c2995.md) | '*declaration*': function template has already been defined | | [Compiler error C2996](compiler-error-c2996.md) | '*function*': recursive function template definition | | Compiler error C2997 | '*function*': array bound cannot be deduced from a default member initializer | -| [Compiler error C2998](compiler-error-c2998.md) | '*declarator*': cannot be a template definition | +| [Compiler error C2998](compiler-error-c2998.md) | '*identifier*': cannot be a template definition | ## See also