
24 Sep
2010
24 Sep
'10
7 p.m.
C++0x lambda functions unfortunately do not define result_type, which is required for most of the Boost.Iterator predefined adapters. Is there a recommended approach to use here? Right now I'm creating a generic wrapper object which determines the result_type using a decltype(), but that seems to be giving me problems on Linux (works fine on Windows). Not the result_of call itself, but something to do with the wrapper's default constructor. So I'm looking for a better solution.