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



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.

Regards,

Jeff.



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