Boost logo

Boost Users :

Subject: [Boost-users] [Iterator] filter_iterator and C++0x lambdas
From: lfrfly_at_[hidden]
Date: 2010-09-24 15:00:26


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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net