Boost logo

Boost Users :

Subject: [Boost-users] boost::iterator_facade and std::find
From: James Kyle (boost_at_[hidden])
Date: 2010-07-01 22:17:20


I'm having some issues with boost::iterator_facade iterators and the
std::find template. I've reproduced the error using the example code from
the boost documentation (the linked list tutorial). The only difference
between this implementation and the one provided is a dereference value of
Value* instead of Value&.

The template error seems to indicate find is looking for a reference as the
value argument. I've written up a full explanation with error output and a
compilable example program with a main() that tests the find method here:

http://stackoverflow.com/questions/3154276/boostiterator-facade-and-stdfind

Any help appreciated.

Cheers,

-james



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net