Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-09-26 19:10:41


Stefan Slapeta <stefan_nospam__at_[hidden]> writes:

> Running __main__.__doc__
> Trying: from const_argument_ext import *
> Expecting: nothing
> ok
> Trying: accept_const_arg_noproto(1)
> Expecting: 1
> *****************************************************************
> Failure in example: accept_const_arg_noproto(1)
> from line #2 of __main__
> Exception raised:
> Traceback (most recent call last):
> File "c:\python23\lib\doctest.py", line 442, in _run_examples_inner
> compileflags, 1) in globs
> File "<string>", line 1, in ?
> ArgumentError: Python argument types in
> const_argument_ext.accept_const_arg_noproto(int)
> did not match C++ signature:
> accept_const_arg_noproto(class boost::python::api::object)

This is just freaky. A Python int can't be converted to a
boost::python::object??

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk