Am Sat, 23 Jul 2011 08:14:55 +0200 (CEST) schrieb Vincent Torri: > > > On Fri, 22 Jul 2011, Enlightenment SVN wrote: > > > Log: > > Ecorexx::Timer design changed to have a factory and provide destroy > > function to wrap C interface better than before also used sigc++ > > slots as callback provider > > what about using shared_ptr for your factory ?
I thought about it. Even at elementaryxx where I use the same design. I've that CountedPtr class in elmxx and use it at some places. But for this use cases I decided against it. I don't remember the exact reason for elementaryxx... But at the end the C object is killing itself. Also a shared smart pointer doesn't solve all problems in my eyes. It could solve the problem that after some point I have an dangerous pointer which points nowhere as in the C interface. But this comes with some other negative side effects in the interface. But if you've ideas how to solve it better please come up with a better implementation to discuss it. I'm really open for this. :-) regards Andreas -- Technical Blog <http://andreasvolz.wordpress.com/> ------------------------------------------------------------------------------ Storage Efficiency Calculator This modeling tool is based on patent-pending intellectual property that has been used successfully in hundreds of IBM storage optimization engage- ments, worldwide. Store less, Store more with what you own, Move data to the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/ _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel