Boost logo

Boost :

From: Bohdan (warever_at_[hidden])
Date: 2002-09-23 12:19:33

I have following code:

template < typename PointerT > void f( PointerT ptr )
      ReferenceT ref = *ptr;
      // ... do something with ref ...

The problem is that ReferenceT is unknown inside f( ... ).
If i had similar code for InteratorT instead of PointerT i was using
AFAIK there is no pointer traits for a raw and smart pointers and i can not
use type_traits for smart pointers.
So, the question is:
"Is there some simple solution for this problem or this is just lack of
pointer_traits in boost (std?) ?"


Boost list run by bdawes at, gregod at, cpdaniel at, john at