Re: Signature matching, manual intervention.
David Abrahams <[email protected]>
| Newsgroups | gmane.comp.lib.boost.langbinding |
|---|---|
| Message-ID | <[email protected]> |
on Tue Aug 07 2007, Rene Rivera <grafikrobot-AT-gmail.com> wrote: > So I was talking with JW (John W. since there are two Johns I keep > having to refer to) and he asked a rather simple question when I was > mentioning the Luabind signature matching: > > How can you choose a particular overload to call, if you know which > one you want? > > In particular the example he cited was of having two methods overloaded > on different subclasses of a common class. So my almost immediate answer > was: > > You can't, since you'll get an error in C++ anyway. > > But then I realized that one can, with some clever casting, and function > pointer. So my question now is: > > Should forcing a call to a specific overload be supported? IMO there is no need to support that other than by choosing the argument types carefully. > And the obvious follow up: How? By choosing the actual argument types carefully :-) -- Dave Abrahams Boost Consulting http://www.boost-consulting.com The Astoria Seminar ==> http://www.astoriaseminar.com ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/