ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> cpp-sig
cpp-sig
Re: [C++-sig] Re: call_method
by David Abrahams other posts by this author
Dec 4 2002 2:50PM messages near this date
Re: [C++-sig] Re: call_method | [C++-sig] Static, again...
Brett Calcott <brett.calcott@[...].nz>  writes:

> > Not implemented yet:
> > 
> > * Automatic conversion of shared_ptr<T> to python (e.g. when used as a
> >   return type). For that, you still need to pass shared_ptr<T> to
> >   class_<...> as the holder, and since the old mechanism doesn't take
> >   advantage of the new shared_ptr deleter introspection feature yet,
> >   you always get a new Python object.
> 
>  You could roll your own for the moment with a ustom to_python convertor
>  - right?

Right.

> > Open questions:
> > 
> > * There is some cost in code and compilation time associated with
> >   these automatic conversions for each class_<...> instance. Should
> >   users really be forced to pay for these conversions, or should they
> >   be explicitly requested, e.g.
> > 
> >      register_shared_ptr<T>();
> > 
> >   Such a function may be needed anyway, since classes that are exposed
> >   other than via class_<> (see, e.g. class Simple in
> >   libs/python/test/m1.cpp) may want to be managed via shared_ptr<>.
> 
>  Anything to ease the strain on our poor compilers would be good :) 
>  Of course, I'll be using it all the time.

If a guy who says he's going to use it all the time volunteers to have
it be manual, I guess I'm sold on the idea that it should be manual.

Do I hear any further objections?

>  Thanks for the new funkiness.

Sure!

bootsy-ly y'rs,
dave
-- 
                       David Abrahams
   dave@[...].com * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution


_______________________________________________
C++-sig mailing list
C++-sig@[...].org
http://mail.python.org/mailman/listinfo/c++-sig
Thread:
David Abrahams
David Abrahams
Brett Calcott
David Abrahams

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved