Boost logo

Boost :

Subject: Re: [boost] [smart_ptr] scoped_array / shared_array (size_t)constructor
From: Peter Dimov (pdimov_at_[hidden])
Date: 2011-10-27 18:21:07


Ivan Sorokin wrote:

> Will two overloads scoped_ptr(T*) and scoped_ptr(size_t) conflict with
> each other, when somebody calls scoped_ptr<T>(0)?

This is an interesting observation. It didn't occur to me that the size_t
constructor can break existing code.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk