Boost logo

Ublas :

From: Michael Stevens (mail_at_[hidden])
Date: 2005-08-26 13:17:01


On Friday 26 August 2005 18:41, Georg Baum wrote:
> Am Freitag, 26. August 2005 18:22 schrieb Michael Stevens:
> > On Friday 19 August 2005 14:36, Peter Schmitteckert wrote:
> > > BTW, we should use
> > > pointer data = NULL;
> >
> > Stroustrup in 5.1.1 'Zero' recommends 0!
>
> What is wrong with
>
> pointer data = 0;
>
> instead of
>
> pointer data;
>
> ? I understand that the current code is safe, but a library should be
> compilable without such warnings.

The only problem is it is less efficient. It would be nasty to make
unbounded_array less efficient because of this warning.

Michael