Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
呼び出し元の名前空間で が見つからない場合operator>>、コンパイラは、使用するパラメーターに関連付けられた名前空間で演算子を探します。この場合、それらはすべて、グローバル名前空間ではなく、名前空間 std から取得されます。したがって、グローバル名前空間は検索されません。
operator>>
を明示的に呼び出すと::operator>>(istream, array)、(具体的に要求したように) グローバル名前空間が検索されます。
::operator>>(istream, array)