|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-04-17 15:02:26
From: "Giovanni Bajo" <giovannibajo_at_[hidden]>
> And, let me add, this
"always-make-a-functor-around-your-template-function"
> issue is annoying. Do you know if there are any plans to modify this in
the
> future?
There has been some talk in the -ext committee reflector (but no concrete
proposals) to allow 'Foo' to be used in contexts where a function object is
expected (with the compiler generating an unnamed functor automagically.)
> > The problem here is that EDG considers Foo<int, int> a set of overloaded
> > functions (even when it contains a single element.) You need to
> > disambiguate:
>
> > void (*f) (int, int) = Foo<int, int>;
> > bind(f, _1, _2);
>
> Thanks, much easier syntax. Do you know if this is a bug of EDG, or just
an
> "allowed" interpretation of the standard? If it is not covered at all, it
> looks like a feasable DR to me.
There's one already:
http://std.dkuug.dk/jtc1/sc22/wg21/docs/cwg_active.html#115
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk