From: Brian Riis (brian_at_[hidden])
Date: 2004-10-14 07:34:14
Stuart Dootson wrote:
> On Thu, 14 Oct 2004 02:32:32 +0200, Brian Riis <brian_at_[hidden]> wrote:
>>std::vector<myTuple>::iterator iter =
>> std::find_if(v.begin(), v.end(),
>> (bind(&myTuple::get<1>, _1) == id));
>>My compiler (MinGW-3.4.2) gives me an error message on that last line:
>>"error: cannot resolve overloaded function `get' based on conversion to
>> /Brian Riis
> Looking at the error message, it's thinking bind is part of the socket
> library (I get a similar thing from Intellisense in Visual Studio).
> You could try fully qualifying bind (::boost::lambda::bind??)
Well, that solved that problem at least. Thanks! MinGW did indeed find
the wrong bind function. Now I'm stuck on a different matter. Apparently
&myTuple::get<1> is not the address of that function. MinGW claims it is
an unknown type. I get the feeling it's because of the template
specialization, so I'll dig into that.
Thanks again, Stuart! Much appreciated.
> Stuart Dootson
-- /Brian Riis
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk