We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 06bb67c + a4290ab commit 814f892Copy full SHA for 814f892
docs/error-messages/compiler-errors-2/compiler-error-c2751.md
@@ -1,10 +1,9 @@
1
---
2
description: "Learn more about: Compiler Error C2751"
3
title: "Compiler Error C2751"
4
-ms.date: "11/04/2016"
+ms.date: "03/11/2024"
5
f1_keywords: ["C2751"]
6
helpviewer_keywords: ["C2751"]
7
-ms.assetid: 44a3abdf-8a87-4a09-b34b-532c220c310a
8
9
# Compiler Error C2751
10
@@ -16,11 +15,11 @@ The following sample generates C2751:
16
15
17
```cpp
18
// C2751.cpp
19
-namespace std {
20
- template<typename T>
21
- class list {};
+// compile with: /c
+namespace NS
+{
+ class C {};
22
}
23
24
-#define list std::list
25
-void f(int &list){} // C2751
+void func(int NS::C) {} // C2751
26
```
0 commit comments