[C++-sig] call_f(Derived) did not match C++ signature
Shin-ichi MORITA
shin1_morita at yahoo.co.jp
Wed Jun 9 16:09:22 CEST 2004
Hi, this is my first post.
I've just started learning Boost.Python.
I want to expose C++ abstract class and function that
receives its instance like this example in the tutorial:
http://boost.org/libs/python/doc/tutorial/doc/class_virtual_functions.html
But I have a problem ...
I compiled this example as module foo and ran test_foo.py
attached to this mail.
Then I had following errors:
====== BEGIN OUTPUT ======
*****************************************************************
Failure in example: foo.call_f(a)
from line #9 of test_foo
Exception raised:
Traceback (most recent call last):
File "/home/shin/.local/lib/python2.3/doctest.py", line
442, in _run_examples_inner
compileflags, 1) in globs
File "<string>", line 1, in ?
ArgumentError: Python argument types in
foo.call_f(Derived)
did not match C++ signature:
call_f(Base {lvalue})
*****************************************************************
1 items had failures:
1 of 4 in test_foo
***Test Failed*** 1 failures.
EXIT STATUS: 1
====== END OUTPUT ======
What's wrong?
Thanks.
__________________________________________________
Do You Yahoo!?
http://bb.yahoo.co.jp/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.cc
Type: application/octet-stream
Size: 411 bytes
Desc: foo.cc
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20040609/cb9b3068/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_foo.py
Type: application/octet-stream
Size: 370 bytes
Desc: test_foo.py
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20040609/cb9b3068/attachment-0001.obj>
More information about the Cplusplus-sig
mailing list