Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-09-23 07:25:07


From: "Thomas Witt" <witt_at_[hidden]>
> On Sunday 22 September 2002 23:12, Douglas Gregor wrote:
> > Thanks for catching this. I've added a testcase for it, and committed a
fix
> > that _should_ be portable (about to test MSVC6...) to both the branch
and
> > trunk.
>
> The fix breaks for Intel 6.0.1 on linux. The problem is that
> intel does not find an appropriate overload when calling
>
> template <class T>
> void foo(T const& t);
>
> with a function. It compiles if foo's argument type is T&. g++-3.1.1 and
> como-4.3.0.1 compile both. I can't tell whether it is legal or not.

Currently illegal, but likely to become legal.

http://std.dkuug.dk/jtc1/sc22/wg21/docs/cwg_active.html#295


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk