Re: [Boost-users] Bind/Function: use reference arguments in template variadic functions

Actually, I try to use template variadic functions which can contains references, pointers and/or values which must be converted to boost::function0<void>.
I tried to use forward() but I lose references with it. I tried ref() to but it make values interpreted as references (so ints are broken). So I'm looking for a magic way to use ref() only when needed by the arguments.
What do you mean by "when needed by the arguments?"
How do you specify what should have ref added and
what shouldn't?
Well, I tried to make a template pseudo-code to determine which function it needs to use.
Like this code that does not work:
///// Big code to make it working
template
participants (1)
-
Yannick POTIN