Skip to content

Commit 4ef7eb2

Browse files
authored
Update compiler-error-c2526.md
There's nothing wrong with the previous example. We just try to be as pedantic as possible because we are focusing more lately on newcomers to C++
1 parent d0e5e56 commit 4ef7eb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/error-messages/compiler-errors-2/compiler-error-c2526.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ class A {};
2121

2222
extern "C" A<int> func() // C2526
2323
{
24-
return {};
24+
return A<int>();
2525
}
2626
```

0 commit comments

Comments
 (0)