
22 Apr
2011
22 Apr
'11
7:14 a.m.
On 4/22/2011 12:03 AM, Jeremy Maitin-Shepard wrote:
I think he is just suggesting to replace
"new shifted<T>(...)"
with
"make_shifted<T>(...)"
or something similar, where make_shifted returns a shifted_ptr<T> directly rather than a raw pointer to shifted<T>.
make_shifted<>() would make overloading of the allocator less flexible. This is why I opted for operator new. -Phil