📄 defarg4.c
字号:
// { dg-do compile }// Copyright (C) 2003 Free Software Foundation, Inc.// Contributed by Nathan Sidwell 3 Jul 2003 <nathan@codesourcery.com>// PR c++ 9162. default args got left unprocessedstruct S { friend int foo (const S&, int = 100);};S s;int i = foo (s);struct R{ template <typename T> R (T, int = 0);};int Foo (){ R s (1);}template <typename T> struct Q{ int Foo (T, int = 0);};int Foo (Q<int> *s){ s->Foo (1);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -