
22 Oct
2007
22 Oct
'07
7:16 a.m.
On 10/19/07, shunsuke <pstade.mb@gmail.com> wrote:
Stjepan Rajko wrote:
template<> struct operation_impl<some_producer_tag, some_consumer_tag> { // specify result type using result_type typedef or template<> struct result // ...
template<typename P, typename C> some_result_type operator()(P &p, C &c) { ... }; };
FWIW, this can have data members, which `operator()` can access.
Indeed - and now that you point it out, I think this brings up a lot of very interesting possibilities for the library which I haven't thought of before. Additionally, I'm liking that this approach integrates with Boost.ResultOf. Perhaps it will be worth switching to it. Thanks for your thoughts! Stjepan