[bind][factory] Nested binds with functional/factory

12 Mar
2009
12 Mar
'09
8:37 a.m.
Dear all, I'm trying to use boost::bind in combination with boost/functional/factory.hpp (and value_factory) this works fine, boost::bind( boost::factory<T*>(), arg1, _1 ) with arg1 not being an lvalue (e.g., 2.0). however, with nested binds it is not accepted, boost::bind( boost::factory<T*>(), boost::bind( f, _1 ), _2 ) the compiler complains that it needs an lvalue for the nested bind. Is this desired behaviour? Is there some trick around this? Many thanks, Kind regards, Rutger ter Borg
5930
Age (days ago)
5930
Last active (days ago)
0 comments
1 participants
participants (1)
-
Rutger ter Borg