Re: gtkmm and boost



On Thu, 2007-08-16 at 23:31 +0100, Chris Vine wrote:
> Since boost::shared_ptr
> allows custom deleter functions to be passed as an additional
> constructor parameter, the latter is already provided for.  The former
> (custom constructors) cannot be done, so incrementing of the GObject
> reference count would have to be done by the factory function which
> returns the GObject by (boost::shared_ptr) reference.

If in doubt check the documentation - in fact, I see on checking that
the most recent versions of boost::shared_ptr<> now allow a third
constructor argument comprising a custom allocator.

So glibmm could use boost::shared_ptr<> now if wanted: although if
glibmm sticks to its present approach to factory functions, it would not
be necessary to use such custom allocators.

Chris





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]