Re: Proposing switch -fsmart-pointers

2012-10-06 Thread _
Now obviously you can't put stl everywhere. I don't see kernel and low level C or C++ libs using boost or stl. any time soon. Afterall. No reasonable library uses it either due to binary incompatibilities. But the idea behind smart-pointers is universal end equally relevant in C and non stl world.

Re: Proposing switch -fsmart-pointers

2012-10-06 Thread _
There is a lot of places you can(and you probably will) make bugs. A) less code less bugs. It's as simple as that. B) people forget or make misteakes in cleanup order. Compiller doesn't C) people put stuff to destructors. stuff that can (and will) blow and no or wrong resources are released. D) th

Re: Proposing switch -fsmart-pointers

2012-10-06 Thread Gabriel Dos Reis
On Sat, Oct 6, 2012 at 1:59 PM, _ wrote: > Now obviously you can't put stl everywhere. True. Did you send in a patch to review? -- Gaby

Re: Proposing switch -fsmart-pointers

2012-10-06 Thread Oleg Endo
On Sat, 2012-10-06 at 20:59 +0200, _ wrote: > Now obviously you can't put stl everywhere. > I don't see kernel and low level C or C++ libs using boost or stl. any > time soon. > Afterall. No reasonable library uses it either due to binary > incompatibilities. It seems that your proposed fix to th

gcc-4.7-20121006 is now available

2012-10-06 Thread gccadmin
Snapshot gcc-4.7-20121006 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.7-20121006/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 4.7 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/branches

Re: Proposing switch -fsmart-pointers

2012-10-06 Thread _
On Sat, Oct 6, 2012 at 11:47 PM, Oleg Endo wrote: > On Sat, 2012-10-06 at 20:59 +0200, _ wrote: >> Now obviously you can't put stl everywhere. >> I don't see kernel and low level C or C++ libs using boost or stl. any >> time soon. >> Afterall. No reasonable library uses it either due to binary >>

Re: Proposing switch -fsmart-pointers

2012-10-06 Thread _
You will probably kill me for this. But no such patch yet exists. I am kinda trying findout wheter there is interest in such experiment and find some help since to me alone it would take ages. But I love to see that you are interested. It really is encouraging to me. Thx. :) Ladislav On Sat, Oct 6

Re: Proposing switch -fsmart-pointers

2012-10-06 Thread Gabriel Dos Reis
On Sat, Oct 6, 2012 at 7:47 PM, _ wrote: > You will probably kill me for this. But no such patch yet exists. > I am kinda trying findout wheter there is interest in such experiment > and find some help since to me alone it would take ages. > But I love to see that you are interested. It really is