Skip to content

Commit 50edf5c

Browse files
authored
Update compiler-error-c2061.md
1 parent 4746686 commit 50edf5c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ int main()
4747

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

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

0 commit comments

Comments
 (0)