[C++-sig] Re: wrapping function taking pointer to pointer
David Abrahams
dave at boost-consulting.com
Mon Sep 8 21:43:50 CEST 2003
Jason.Sibthorpe at aculab.com writes:
> Hi all,
>
> Could someone point me towards the documentation (if any exists)
> for wrapping a function taking a pointer to a pointer to some
> type.
>
> void ptrptr(char **in)
> {}
>
> BOOST_PYTHON_MODULE(test)
> {
> def("ptrptr", &ptrptr);
> }
There's no one way to do this.
> When calling the function from python I get the following
>
> <snip>
> did not match C++ signature:
> inptrptr(char**)
What kind of Python object do you *expect* to be able to pass to
inptrptr?
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list