ambigouous find ?wth? 
Author Message
 ambigouous find ?wth?

could someone please tell me what i am doing wrong with find ??
ihave tried numerous permutations with no succesful compile ....

#include <vector>
using namespace std;

void main(void)
{
    vector<int> ilist;
    vector<int>::iterator  fit;
    int val = 6;

    for( int i = 0 ; i < 10 ; i++ ) ilist.push_back( i );

    fit = find( ilist.begin, ilist.end, val );  // *** Error => Ambiguous***

Quote:
}

TIA
rob


Mon, 10 May 2004 00:48:15 GMT  
 ambigouous find ?wth?
fit = find( ilist.begin(), ilist.end(), val );

--
With best wishes,
    Igor Tandetnik

"For every complex problem, there is a solution that is simple, neat, and
wrong." H.L. Mencken

Quote:

> could someone please tell me what i am doing wrong with find ??
> ihave tried numerous permutations with no succesful compile ....

> #include <vector>
> using namespace std;

> void main(void)
> {
>     vector<int> ilist;
>     vector<int>::iterator  fit;
>     int val = 6;

>     for( int i = 0 ; i < 10 ; i++ ) ilist.push_back( i );

>     fit = find( ilist.begin, ilist.end, val );  // *** Error =>
Ambiguous***
> }

> TIA
> rob



Mon, 10 May 2004 00:53:20 GMT  
 ambigouous find ?wth?
uhg, thanks


Quote:
> fit = find( ilist.begin(), ilist.end(), val );



Mon, 10 May 2004 01:23:50 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Whats wrong wth this program?

2. Help wth File Buffer

3. Templates wth DLLs (VC++)

4. Demand for printing routine wth MFC in Visual C++

5. create static lib wth mfc classes

6. Find and Replace, Not Find and Overwrite

7. Find dialogbox or Find/replace dialogbox?

8. Cant find find AFX resource in debug mode

9. find tab using CString.Find

10. Find / Find next command setting

11. Find last, or find previous...

12. A Hard To Find Bug - Found

 

 
Powered by phpBB® Forum Software