|
Boost : |
From: Matt Calabrese (rivorus_at_[hidden])
Date: 2005-11-02 14:28:54
On 11/1/05, Jason Hise <chaos_at_[hidden]> wrote:
> template < typename ReturnType [, ...] >
> future < ReturnType > enqueue( ReturnType (Type::*func) ( [...] ) [,
> ...] );
I'd personally prefer using the member function pointer as an explicit
template argument, allowing for the calling syntax:
enqueue< &your_type::member_function >( your, arguments, go, here );
Again, with proper forms having different amounts of parameters generated by
Boost.Preprocessor.
-- -Matt Calabrese
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk