4 Dec
2002
4 Dec
'02
1:44 p.m.
From: "Markus Werle"
The code below compiles fine if You return to Value semantics and replace "const Vector&" with "Vector". But with reference to vector two compilers (Intel-7.0 and gcc-3.2.1) "throw" with a "reference to reference" error.
How can I achieve what I want here?
[...]
#include "boost/bind.hpp" #include "boost/compose.hpp"
It's simple, don't use compose. :-) [...]
function
l = compose_f_gx_hx(Adder, h1, h2);
Change to bind(Adder, bind(h1, _1), bind(h2, _1));