$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Douglas Gregor (gregod_at_[hidden])
Date: 2002-10-31 16:49:42
On Wednesday 30 October 2002 11:50 am, David Abrahams wrote:
> The docs show this constructor:
>
> explicit signal(const Combiner& = Combiner(), const GroupCompare& =
> GroupCompare());
>
> I think it should say:
>
> explicit signal(Combiner = Combiner(), GroupCompare = GroupCompare());
>
> Even though that's not the actual signature in the library, since
> these objects will be copied (a convention that is used in the
> standard also).
That's interesting... Woudl you even do this with a signature like:
template<typename T> void foo(const T&)
?
I ask because this would have different semantics than:
template<typename T> void foo(T);
when passed a function (because there is no reference to const function).
Doug