31 Aug
2002
31 Aug
'02
12:38 p.m.
"Peter Dimov"
wrote in message news:00ce01c24f65$03862790$1d00a8c0@pdimov2... I have since added ::value_type to shared_ptr, but unfortunately, this
is
apparently not enough. Even though the indirect iterator adaptor needs only the value_type, the attempt to instantiate std::iterator_traits means
From: "David Abrahams"
make_indirect_iterator cannot work with shared_ptr.
Why is that? There's no reason that instantiating std::iterator_traits
should cause a problem by itself.
Try it:
#include