This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Proposing switch -fsmart-pointers


On Fri, Oct 5, 2012 at 9:08 AM, _ <neuralll@gmail.com> wrote:
>
> I thing it would be best to implement it as compiller switch -fsmart-pointers
> not requiring scope object and derive statement for objects. ie we
> need equal flexibility and freedom like have today with static objects

Experience shows us that programmers want several different types of
smart pointers in practice.  I don't see any reason to enshrine a
particular variant in the compiler.  Particularly when C++ already
supports smart pointers.

(For example, your variant of smart pointers doesn't seem to help with
pointers in struct fields, when those structs are stored in the heap.)

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]