Re: [sigc] Re: [Boost-users] Signals & Slots



On Fri, 2005-01-07 at 08:19 -0500, Douglas Gregor wrote:
> On Jan 7, 2005, at 6:12 AM, Murray Cumming wrote:
> > 3. In "Slot Binders"
> > Can you expand on this question: "TODO: answer questions: a) What's up
> > with the No Clue entry, anyone?", please. In fact, please just ask your
> > TODO questions on this mailing list.
> 
> So the intent of retype() and retype_return() is to allow casting of 
> the argument and return types of a function. Are these also required 
> when performing implicit conversions? For instance, will the following 
> work?
> 
>    long Func3(double val, string str);
> 
>    sigc::signal<int, float, string> sig;
>    sig.connect(sigc::ptr_fun(&Func3));

Yes, it does, either with or without ptr_fun. I am surprised about that
- I prefer explicit APIs.

And it does not give compiler warnings about conversions between signed
and unsigned types. I feel that's a bug:
http://bugzilla.gnome.org/show_bug.cgi?id=163314

[snip]

> And one minor quibble: if we're going to explicitly qualify 
> Boost.Signals by saying that it was strongly influenced by the work of 
> Karl Nelson (that's true), I think it's only fair to point out that 
> libsigc++-2.0's interface was influenced by Boost.Signals.

Of course.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]