$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-11-13 10:17:35
From: <garcia_at_[hidden]>
> The following seems to compile with gcc 2.95.2 and KCC 3.4g:
>
> void f(int x, int y);
> char* g();
> bind<char*>(g, bind(f, 1, 2));
>
> I'm not familiar enough with bind to be sure why.
When using the generic function object syntax, bind tends to generate errors
at the point of the actual call. Try
bind<char*>(g, bind(f, 1, 2))();
-- Peter Dimov Multi Media Ltd.