1>------ Build started: Project: Bank, Configuration: Debug Win32 ------
1> Bank.cpp
1>d:\software\microsoft\visual studio 2012 - ultimate\vc\include\xutility(3186): error C2679: binary '==' : no operator found which takes a right-hand operand of type 'const std::string' (or there is no acceptable conversion)
1> c:\users\jumper\desktop\c++ oop\bank\bank\bank.h(33): could be 'bool operator ==(Bank,Bank)' [found using argument-dependent lookup]
1> d:\software\microsoft\visual studio 2012 - ultimate\vc\include\exception(507): or 'bool std::operator ==(const std::exception_ptr &,const std::exception_ptr &)'
1> d:\software\microsoft\visual studio 2012 - ultimate\vc\include\exception(512): or 'bool std::operator ==(std::nullptr_t,const std::exception_ptr &)'
1> d:\software\microsoft\visual studio 2012 - ultimate\vc\include\exception(517): or 'bool std::operator ==(const std::exception_ptr &,std::nullptr_t)'
1> d:\software\microsoft\visual studio 2012 - ultimate\vc\include\system_error(426): or 'bool std::operator ==(const std::error_code &,const std::error_condition &) throw()'
1> d:\software\microsoft\visual studio 2012 - ultimate\vc\include\system_error(434): or 'bool std::operator ==(const std::error_condition &,const std::error_code &) throw()'
1> while trying to match the argument list '(Bank, const std::string)'
1> d:\software\microsoft\visual studio 2012 - ultimate\vc\include\xutility(3219) : see reference to function template instantiation '_InIt std::_Find<Bank*,_Ty>(_InIt,_InIt,const _Ty &)' being compiled
1> with
1> [
1> _InIt=Bank *,
1> _Ty=std::string
1> ]
1> c:\users\jumper\desktop\c++ oop\bank\bank\bank.cpp(36) : see reference to function template instantiation '_InIt std::find<std::_Vector_iterator<_Myvec>,std::string>(_InIt,_InIt,const _Ty &)' being compiled
1> with
1> [
1> _InIt=std::_Vector_iterator<std::_Vector_val<std::_Simple_types<Bank>>>,
1> _Myvec=std::_Vector_val<std::_Simple_types<Bank>>,
1> _Ty=std::string
1> ]
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |