Re: gtkmm and boost
- From: Chris Vine <chris cvine freeserve co uk>
- To: Murray Cumming <murrayc murrayc com>
- Cc: gtkmm-list gnome org, manphiz <manphiz gmail com>
- Subject: Re: gtkmm and boost
- Date: Thu, 16 Aug 2007 23:48:27 +0100
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]