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
の時からあったものなのか・・・たぶん・・・。
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
の時からあったものなのか・・・たぶん・・・。