[C++-sig] Possible overload<> template for class members
David Abrahams
dave at boost-consulting.com
Sun Dec 15 04:18:28 CET 2002
"Joel de Guzman" <djowel at gmx.co.uk> writes:
> Why not simply:
>
> .def("show", overload<>(&Window::show))
> .def("show", overload<int>(&Window::show))
> .def("show", overload<int,bool*>(&Window::show))
> .def("show", overload<int,bool>(&Window::show))
>
> Can't we do that?
Look back a few messages in this thread. Wasn't that precisely what I
was suggesting at the end of
http://article.gmane.org/gmane.comp.python.c%2B%2B/2083
?
I believe Aleksey's objections apply here.
--
David Abrahams
dave at boost-consulting.com * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution
More information about the Cplusplus-sig
mailing list