B
Bit byte
I have the ff code:
list<string> *m_alive_list ;
list<string>::iterator my_iter;
my_iter = find(m_alive_list->begin(), m_alive_list->end, string(inbox) ;
Compiler barfs on 2nd line with this error msg:
error C2665: 'std::find' : none of the 3 overloads can convert parameter
1 from type 'std::list<_Ty>::iterator'
with
[
_Ty=std::string
]
I thought the first arg (i.e. ->begin() ) returns an iterator of the
correct type - what gives?
list<string> *m_alive_list ;
list<string>::iterator my_iter;
my_iter = find(m_alive_list->begin(), m_alive_list->end, string(inbox) ;
Compiler barfs on 2nd line with this error msg:
error C2665: 'std::find' : none of the 3 overloads can convert parameter
1 from type 'std::list<_Ty>::iterator'
with
[
_Ty=std::string
]
I thought the first arg (i.e. ->begin() ) returns an iterator of the
correct type - what gives?