iterator_traits and shared_ptr
Hi,
I'm trying to transparently get the type of a shared_ptr or a pod
pointer using iterator_traits::value_type. This fails on shared_ptr<T>
with the following message:
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_iterator_base_types.h:
In instantiation of 'std::iterator_traits
participants (2)
-
Patrik Jonsson
-
Peter Dimov