Boost logo

Boost :

From: Jens Maurer (Jens.Maurer_at_[hidden])
Date: 2001-02-01 13:30:04

Paul Selormey wrote:.
> If possible, please give the regex_grep an optional argument
> which could be passed to the static callback procedure.
> This way it will be very simple to use the callback as static method
> of classes and let it access methods/members by passing in the "this"
> pointer as in multithreaded callbacks.

Without looking at code nor documentation, it seems that you
want to use std::mem_fun and std::bind1st to achieve
"callback with this parameter".

Otherwise, just define a function object.

Jens Maurer

Boost list run by bdawes at, gregod at, cpdaniel at, john at