Skip to content

Commit 585e03f

Browse files
authored
Update docs/error-messages/compiler-errors-1/compiler-error-c2061.md
1 parent 50edf5c commit 585e03f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/error-messages/compiler-errors-1/compiler-error-c2061.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ int main()
4545
}
4646
```
4747

48-
To resolve the error with `template<A a> class C1{};`, use `template <typename a> class C1 {};`
49-
To resolve the issue with `using Type1 = T::Type;`, use `using Type1 = typename T::Type;`
48+
To resolve the error with `template<A a> class C1{};`, use `template <typename a> class C1 {};`\
49+
To resolve the issue with `using Type1 = T::Type;`, use `using Type1 = typename T::Type;`\
5050
To resolve the issue with `alignof(x)`, replace the argument with the type of `x`. In this case, `int` or `decltype(x);`
5151

5252
C2061 can occur if you pass an instance name to [typeid](../../extensions/typeid-cpp-component-extensions.md):

0 commit comments

Comments
 (0)