$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-10-05 06:38:28
From: "Jeremy Siek" <jsiek_at_[hidden]>
> I've checked in a workaround for the problem. The root of the problem is
> in a limitation of detail::iterator_traits when there isn't partial
> specialization. However, projection_iterator doesn't relly need to rely on
> detail::iterator_traits (by using the default reference type). So I
> changed projection_iterator to explicitly pass the reference type to
> iterator_adaptor.
A minimal example that shows the problem:
#include <boost/iterator_adaptors.hpp>
#include <functional>
int & f(int & x)
{
return x;
}
int main()
{
int * p;
boost::make_projection_iterator(p, std::ptr_fun(f));
}
It still fails.
-- Peter Dimov Multi Media Ltd.