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