"Markus Pesti" <[EMAIL PROTECTED]> writes:

> "David Abrahams" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> Or you can use the indirect iterator adaptor from the boost sandbox
                                                               ^^^^^^^
> (boost/iterator/iterator_adaptors.hpp)
>>
>> bool find(const std::list<boost::shared_ptr<A> >& Alist, int v) {
>>  return std::::find_if(
>>         , make_indirect_iterator(Alist.begin())
>>         , make_indirect_iterator(Alist.end())
>>         A(v)) != Alist.end();
>> }
>
> Thank you very much. But I cannot compile it:
>
> /usr/include/c++/3.2/bits/stl_iterator_base_types.h:123: no type named
> `iterator_category' in `class boost::shared_ptr<A>'
> /usr/include/c++/3.2/bits/stl_iterator_base_types.h:125: no type named
> `difference_type' in `class boost::shared_ptr<A>'
> /usr/include/c++/3.2/bits/stl_iterator_base_types.h:126: no type named
> `pointer' in `class boost::shared_ptr<A>'
> /usr/include/c++/3.2/bits/stl_iterator_base_types.h:127: no type named
> `reference' in `class boost::shared_ptr<A>'
>
> Do you know, what's wrong here?

Yes.  You need to get the iterator_adaptors header from the Boost
Sandbox: file:///C:/boost/more/mailing_lists.htm#sandbox

-- 
                       David Abrahams
   [EMAIL PROTECTED] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to