[C++-sig] Possible overload<> template for class members

Joel de Guzman djowel at gmx.co.uk
Sun Dec 15 17:02:07 CET 2002


----- Original Message ----- 
From: "David Abrahams" <dave at boost-consulting.com>


> "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
> ?

Duh! Still hallucinating I guess. 

Joel de Guzman
joel at boost-consulting.com
http://www.boost-consulting.com








More information about the Cplusplus-sig mailing list