Boost logo

Boost Users :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-07-21 08:11:21


Robert Ramey wrote:

>> const gps_position* g_ptr = new gps_position(35, 59, 24.567f);
>> oa << g_ptr;
>
> Actually I believe the following will work.
>
> const gps_position * const g_ptr = new gps_position(35, 59, 24.567f);
> oa << g_ptr;
>
> I've come to agree although this is a correct rendition of my original
> intent it is a little tooooo obscure and I will look into alterhing this.

Maybe, you can consider disabling the check altogether, after all? Here we
have a situation where even you could not immediately figure out what's
wrong.

- Volodya


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net