|
Boost : |
Subject: Re: [boost] [Signals] Call of an unary object function from a binary signal does not fail to compile
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-12-09 11:51:04
AMDG
Samuel Debionne wrote:
> Almost everything is in the title. To go into details, I have a small test
> case (see attached file) where I accidentally manage to call a unary
> object function from a binary signal. The object function is the result of
> a Boost.Bind call.
>
Boost.Bind ignores any extra arguments.
> I would have expect a compile time error here. What happend to the second
> parameter ?
It is discarded.
> Is there any risks of stack corruption
No.
In Christ,
Steven Watanabe
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk