[C++-sig] custom smart pointers

Roman Yakovenko roman.yakovenko at gmail.com
Mon Sep 18 23:26:39 CEST 2006


On 9/19/06, David Abrahams <dave at boost-consulting.com> wrote:
> "Roman Yakovenko" <roman.yakovenko at gmail.com> writes:
>
> > Python test code also simple:
> >
> > inst = cspc_ext.derived_t()
> > cspc_ext.val_get_value(inst)
> > cspc_ext.const_ref_get_value(inst) # <= in this line I get segmentation fault.
>
> AFAICT this example doesn't work as packaged (the Jamroot doesn't look for
> test.py).

It is possible. I don't use bjam. It is much easier to use scons.
( At least I don't have to define twice the environment of the project )

> Your smart pointer is buggy; it has only a default copy ctor.  The
> enclosed works.

Thank you very much for your help. I will try to do much better job next time.

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the Cplusplus-sig mailing list