Re: [Boost-users] Using Boost.Fusion transform on vector<int&>
Martin Ecker wrote:
I need something like the following (somewhat contrived) example to work with boost::fusion::transform on a boost::fusion::vector
or other vector types that have reference types. Note that the following doesn't compile.
<snip original example>
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.
namespace
{
struct pass_through
{
template<typename Sig>
struct result;
template<typename T>
struct result
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
participants (2)
-
dan marsden
-
Martin Ecker