diag0249.c
来自「开放源码的编译器open watcom 1.6.0版的源代码」· C语言 代码 · 共 22 行
C
22 行
// can only overload member functions where there is no static member function
// with the overloaded name
struct A {
// void foo( int ) const;
void foo( int ) const volatile;
void foo( int );
void foo( int ) volatile;
void foo( int ) const volatile;
void bar1( auto void (A::*mp )( int ) const );
};
void A::bar1( auto void (A::*mp)( int ) const );
void main()
{
A a;
a.bar1( &A::foo );
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?