C++相談室 part20
■ このスレッドは過去ログ倉庫に格納されています
0810デフォルトの名無しさん
NGNGISO/IEC 14882:1998(E) -- C++ -- Declarators
http://www.kuzbass.ru/docs/isocpp/decl.html
の
8.3.6 - Default arguments [dcl.fct.default]
の部分にある
> -4- ……In a given function declaration, all parameters subsequent to a parameter with
> a default argument shall have default arguments supplied in this or previous declarations.
は、part19(前スレ)の726-728
http://pc2.2ch.net/test/read.cgi/tech/1052625846/726-728
の話だよね。で、それに続く以下の文:
> A default argument shall not be redefined by a later declaration (not even to the same value).
の文は、「同じscope内では同じ引数に対してdefault値を(たとえ同じ値であって
も)複数回指定することはできない」なんだろうけど…、コンパイルできたぞ
(@_@)?!!
なんで?
■ このスレッドは過去ログ倉庫に格納されています