|
Boost : |
From: Ullrich Koethe (u.koethe_at_[hidden])
Date: 2001-07-17 07:37:08
Douglas Gregor wrote:
> > };
> >
> > py_hello.def(boost::python::signature<int>, &hello::foo, "foo");
> > py_hello.def(boost::python::signature<int, bool>, &hello::foo, "foo");
> >
> > Doesn't this look like something that would be easy to implement?
> >
> > Ralf
>
> Yes, this would be easy to implement. But I don't believe it would be
> possible to just have:
>
> py_hello.def(&hello::foo, "foo");
>
> and automatically get both versions.
py_hello.def(&hello::foo, "foo", default_args<1>());
could be made to work - see my other post.
Ulli
-- ________________________________________________________________ | | | Ullrich Koethe Universität Hamburg / University of Hamburg | | FB Informatik / Dept. of Computer Science | | AB Kognitive Systeme / Cognitive Systems Group | | | | Phone: +49 (0)40 42883-2573 Vogt-Koelln-Str. 30 | | Fax: +49 (0)40 42883-2572 D - 22527 Hamburg | | Email: u.koethe_at_[hidden] Germany | | koethe_at_[hidden] | | WWW: http://kogs-www.informatik.uni-hamburg.de/~koethe/ | |________________________________________________________________|
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk