📄 access4.c
字号:
// { dg-do compile }// Origin: Mike Reed <mike.reed@amadron.com>// PR c++/11174: Access checking of pointer-to-member functionclass A {protected: void foo() {} // { dg-error "protected" }public: A();};class B : public A { void bar() { A a; void (A::*pmf)() = &A::foo; // { dg-error "this context" } (a.*pmf)(); }};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -