C++相談室 part44
■ このスレッドは過去ログ倉庫に格納されています
0563デフォルトの名無しさん
2005/11/02(水) 03:46:37> (前略)
> If the resulting set of declarations are not all from sub-objects of the same type,
> or the set has a nonstatic member and includes members from distinct sub-objects,
> there is an ambiguity and the program is ill-formed.
隠蔽を考えた上での member name lookup の結果が、
1) 同じ型の sub-objects 由来のものではない場合
2) 非静的メンバを持ち、かつ別個の sub-objects 由来のものを含む場合
のいずれかである場合、曖昧であり ill-formed である、そうな。
オーバーロードの解決はこの後(結果が曖昧でなかった場合)だそうで。
D&E (日本語訳) p.534 にも(非静的メンバだけど)例があった。
■ このスレッドは過去ログ倉庫に格納されています