Re: [sigc] How to use sigc::bind<>



Am 2003.11.11 12:01 schrieb(en) Jeff Franks:
Martin Schulze wrote:

You are right, it seems to work! I'm surprised that the right function overload is chosen automatically for bind() without the number! I hope
this is not gcc specific. I will commit this change to cvs. Should we
change to zero based argument counting for bind<#>, then? Don't forget that this might cause even more confusion for people who use selectors _1, _2, etc. from any lambda library or bind1st(), bind2nd() from stl.
I really don't know what will be more intuitive: 0,1,2... or 1,2,3...

How about the other adapters like hide<>. I noticed that this change looks like it duplicates the code in the bind.h compatibilty file.

I already committed the changes for hide<>.
The code in the compatibility files is in a different namespace so
we can hardly avoid the code duplication.

Regards,

  Martin



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