exception1.c

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

C
34
字号
/* PR 2743 *//* {dg-do compile} */namespace ns {  class Exception  {  };}namespace ns{  class Test {    public:      inline Test() throw( Exception );      inline Test(int n ) throw( Exception );    private:      int i;  };}// This line used to fail because Exception wasn't looked up in the// right scope.ns::Test::Test() throw( Exception ) : i( 1 ){}ns::Test::Test( int n ) throw( Exception ) : i( n ){}int main(int argc, char* argv) {  ns::Test test;}

⌨️ 快捷键说明

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