pmf3.c

来自「gcc3.2.1源代码」· C语言 代码 · 共 25 行

C
25
字号
// Submitted by Nathan Sidwell <nathan@acm.org>// Bug: g++ was crashing after giving errors.template<class T>  void connect_to_method(    T *receiver,    void (T::*method)())  {}class Gtk_Base{ public:  void expose();  void show();  void show(int);  Gtk_Base();};Gtk_Base::Gtk_Base(){  connect_to_method(this,&show);   // ERROR - invalid pmf expression  connect_to_method(this,&expose); // ERROR - invalid pmf expression}

⌨️ 快捷键说明

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