Boost logo

Boost :

From: shunsuke (pstade.mb_at_[hidden])
Date: 2007-10-20 01:28:04


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.

Regards,

-- 
Shunsuke Sogame

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk