On 4/18/06, Neal Becker <ndb...@gm...> wrote:
> I used the attached .hpp file to generate the attached .cpp.
>
> I believe this .cpp would not compile. The problem is that it includes .=
def
> of "Copy" function. This is a template - only an explicit instantiation =
of
> it could be exposed to python.
And you are right.
> I guess I need to tell pyplusplus what functions I want exposed?
This is up to you. You can rename this function: Copy<int, int> and
then you can
succesfuly export this function.
> It would be nice if pyplusplus detected this error. When it writes "&Cop=
y" it
> should realize there is no such function.
I thought about this and it seems to me that I have a solution. Please
comment it:
Every function contains "mangled" string. From this string, I think, I
can get all information
I need. Thus I will be able to change function name to the full one.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
|