scope-operator1.c

来自「linux下编程用 编译软件」· C语言 代码 · 共 21 行

C
21
字号
/* PR c++/250 *//* { dg-do compile } */template <class T> void Bar(T *p){} template <class T> class Foo{public:  Foo(T *p) { Bar(p); }  // The global scope operator wasn't respected in this case under gcc 3.0  void Bar(T *p) { ::Bar<T>(p); }};int main(){  double* d;  Foo<double> f(d);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?