[fusion][Functional] LValue arguments limitation
Fusion manual says: Only LValue arguments are accepted. To overcome this limitation, apply Boost.Functional/Forward. I understand that this has to do with not being able to pass literal constants to the function, e.g. unfused<f> uf; uf(1., 2.); //can't First: 1) can anybody explain why is this? 2) uf( (double const&) 1., (double const&) 2. ); seems to work, but it is probably a hack. (not portable maybe?) 3) the manual says also to use Boost.Functional/Forward to overcome this limitation. What does it mean by this? Thank you, Alfredo
On 11/9/2010 6:01 PM, alfC wrote:
Fusion manual says:
Only LValue arguments are accepted. To overcome this limitation, apply Boost.Functional/Forward.
I'm lost. Could you point me where in the Fusion manual? I need some context. Regards, -- Joel de Guzman http://www.boostpro.com http://spirit.sf.net
2010/11/9 Joel de Guzman
On 11/9/2010 6:01 PM, alfC wrote:
Fusion manual says:
Only LValue arguments are accepted. To overcome this limitation, apply Boost.Functional/Forward.
I'm lost. Could you point me where in the Fusion manual? I need some context.
sorry, here http://www.boost.org/doc/libs/1_41_0/libs/fusion/doc/html/fusion/functional/... third paragraph. The reason I ask is because I found similar limitations in Boost.Phoenix, which once in a while catch me creating compilation errors that are difficult to understand and correct. It seems something fundamental. Thanks, Alfredo
Regards, -- Joel de Guzman http://www.boostpro.com http://spirit.sf.net
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Sie haben diese Nachricht erhalten, da Sie der Google Groups-Gruppe Boost Users beigetreten sind. Wenn Sie Nachrichten in dieser Gruppe posten möchten, senden Sie eine E-Mail an boostusers@googlegroups.com. Wenn Sie aus dieser Gruppe austreten möchten, senden Sie eine E-Mail an boostusers+unsubscribe@googlegroups.com
. Besuchen Sie die Gruppe unter http://groups.google.com/group/boostusers?hl=de, um weitere Optionen zu erhalten.
participants (3)
-
alfC
-
Alfredo Correa
-
Joel de Guzman