|
1
2
唯一的命名方法
您显示的代码似乎使用了Microsoft语言扩展。
在C++ 98中
Comeau C/C++ 4.3.10.1 (Oct 6 2008 11:28:09) for ONLINE_EVALUATION_BETA2
Copyright 1988-2008 Comeau Computing. All rights reserved.
MODE:strict errors C++ C++0x_extensions
"ComeauTest.c", line 17: error: name followed by "::" must be a class or namespace
name... Wild guess: Did you #include the right header?
std::cout << B<A>::E::X << std::endl;
^
1 error detected in the compilation of "ComeauTest.c".
所以不是……
…做…
干杯! |
|
|
2
3
这有帮助吗?
|
|
Fernando Chu · 一个变量有多个可能的类?[关闭] 1 年前 |
|
|
Amaterastis · 基类接受子类和内部子类的模板参数 1 年前 |
|
|
Rishab Negi · 这个关键字在抽象类中是如何工作的 1 年前 |
|
|
dEmigOd · 类层次结构中的运算符重载解析 1 年前 |
|
|
TableTopRug · 如何从Kotlin中的密封类继承? 1 年前 |
|
|
hasdrubal · 抽象基类函数指针python 1 年前 |
|
|
Josh · 通过反思访问孩子的财产 2 年前 |