Hi Dan, dan marsden wrote:
The following code allows references to pass through, as I believe you want. It just uses a slight modification to your function object to allow it to cope with references correctly.
<snip modified code>
My problem is that in pass_through::operator () I need to know the
actual type stored in the vector. With your modified code I would not
necessarily get that, e.g. for vector