Boost logo

Boost :

Subject: Re: [boost] [Shifted Pointer] Review Request
From: GMan (gmannickg_at_[hidden])
Date: 2011-04-22 01:53:37

On Thu, Apr 21, 2011 at 9:38 PM, Phil Bouchard <philippe_at_[hidden]> wrote:

> Greetings,
> I would like to request a review of the Shifted Pointer utility. I am
> happy to say that I've corrected some bugs within the library itself and now
> it seems to be working well with all test files. As pointed out by John
> Maddock, some pool functions such as ordered_free() can still be optimized
> in speed or replaced but for now I would like to keep the interface as it is
> until perhaps some changes to the pool can be proposed.
> Once again to compile the test executables (with gcc):
> $ svn co
> $ cd shifted_ptr/libs/smart_ptr/example
> $ make shifted_ptr_test3
> And its documentation can be found here:
I haven't looked too deeply into it, but this syntax seems scary:

    shifted_ptr<int> v = new shifted<int>(11);

Is there a way to hide that detail? Perhaps construct with values which
internally store shifted<T> from that value? Just seems error prone
and unintuitive.

GMan, Nick Gorski

Boost list run by bdawes at, gregod at, cpdaniel at, john at