Skip to content

Commit 8865841

Browse files
committed
[temp.explicit] Fix the comment in Example 2
1 parent bed3aab commit 8865841

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/templates.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7016,7 +7016,7 @@
70167016
template int *var<int>; // error: instantiated variable has type \tcode{int}
70177017

70187018
template<typename T> auto av = T();
7019-
template int av<int>; // OK, variable with type \tcode{int} can be redeclared with type \keyword{auto}
7019+
template int av<int>; // OK, variable with type \tcode{auto} can be redeclared with type \keyword{int}
70207020

70217021
template<typename T> auto f() {}
70227022
template void f<int>(); // error: function with deduced return type

0 commit comments

Comments
 (0)