らんだむな記憶

blogというものを体験してみようか!的なー

Argument Dependent Lookup(実引数依存の名前検索)

ADLのトンデモ挙動と対策のお話 - Qiita

std::string str1( "abc" );
std::string str2( "abcd" );
if( str1 == str2 ) { ... } // if ADL is disabled, no operator==() is found.
if( std::operator==( str1, str2 ) { ... } // ok

おっと・・・言われてみると == は何者なのかってのは確かに・・・。普通に C++03 の時からあったものなのか・・・たぶん・・・。