Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-09-27 06:32:56


Jonathan Brandmeyer <jbrandmeyer_at_[hidden]> writes:

> On Sun, 2004-09-26 at 20:10, David Abrahams wrote:
>> 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??
>
> I'm sorry, but I really can't think of any other way to work around this
> compiler's particular bug.
>
> Dave, at this point I'd like to know exactly which compilers are
> affected by this. Do you mind if I check in this test?

Be my guest.

-- 
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