
Daniel James <daniel@calamity.org.uk> wrote on 02/26/2005 10:38:06 AM: [snip]
TR (TC::* select_overload(TR (TC::* Func)(void), int = 0))(void) [snip] TR (TC::* select_overload(TR (TC::* Func)(TP), float = 0))(TP) [snip] TR (TC::* select_overload(TR (TC::* Func)(TP1, TP2), from_float = from_float(0)))(TP1, TP2) [snip] TR (* select_overload(TR (* Func)(void), int = 0))(void) [snip] TR (* select_overload(TR (* Func)(TP), float = 0))(TP) [snip] TR (* select_overload(TR (* Func)(TP1, TP2), from_float = from_float(0))) (TP1, TP2)
What's the purpose of the default parameters in the versions of select_overload above? I went ahead and uploaded my boostified implementation to the Boost Sandbox File Vault: http://tinyurl.com/6srac. So far, it’s only been tested on VC7.1/Windows. I plan on trying it out on GCC and Linux at some point. Arturo_Cuebas@bpmicro.com wrote on 02/28/2005 02:18:16 PM:
Funny: I just started revisiting this again too. I also figured out a way to not have to specify the arity - most of the time.
Please disregard what I said here. It turns out that this extra "thing" I was doing made no difference.