Opened 2 years ago

Closed 21 months ago

#959 closed discussion (wontfix)

utility::Dereferencer doesn't work with smart pointers

Reported by: Peter Owned by: Jari Häkkinen
Priority: minor Milestone:
Component: utility Version: 0.17.2
Keywords: Cc:


Dereference<std::shared_ptr<T>> does not work. This is line with the docs, which says that Pointer is supposed to be a raw pointer or a trivial iterator.

Any reason for not allowing smart pointers?

It might be that this class and e.g. all the compose_f... classes are outdated and not useful when having c++11 lambdas.

Change History (1)

comment:1 Changed 21 months ago by Peter

Milestone: yat 0.x+
Resolution: wontfix
Status: newclosed

Apart from working with raw pointer, the current implementation is also working with iterators such as std::deque<T>::iterator and these are not friends with std::pointer_traits.

Note: See TracTickets for help on using tickets.