[C++-sig] Newcomer - constructors not working as I'd expect

David Abrahams dave at boost-consulting.com
Mon Apr 10 17:49:18 CEST 2006


"Ralf W. Grosse-Kunstleve" <rwgk at yahoo.com> writes:

> General remark: use valgrind you have memory problems: http://valgrind.org/
>
> It is really easy, except that you need a suppression file for Python 2.4 or
> higher: Python-2.4*/Misc/valgrind-python.supp
>
> Then: valgrind --tool=memcheck --suppressions=valgrind-python.supp python
> script.py
>
> --- Andrew Pontzen <app26 at ast.cam.ac.uk> wrote:
>
>>      test3(const test1 &basedon) : ourobj(basedon) { };
>> ...
>>      class_<test3, bases<test2> >("test3",init<test1>());
>>    }
>
> This doesn't match. I'd try: init<const test1&>()

Ah, that explains everything.


-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com




More information about the Cplusplus-sig mailing list