$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-02-08 10:27:03
Amélie et François Dumont wrote:
> Just a little remark about the code that has nothing to do with the
> bug that has been elucidated by Graig Henderson. When Greg Dehaas
> wrote:
[...]
>> fncSelection = boost::bind(GenAlg::RouletteWheel<CGAController,
>> unsigned long>,_1);
>
> It seems to me that it would have been more accurate to write:
>
> fncSelection = boost::ptr_fun(GenAlg::RouletteWheel<CGAController,
> unsigned long>);
>
> there is no use for the boost::bind function even if the result is
> finally the same ;-)
There's no need to use ptr_fun, either.
fncSelection = &GenAlg::RouletteWheel<CGAController, unsigned long>;