Actually, I've looked at this and decided that the default behavior for pointers should really be "track_never". That is addresses of addresses should not be stored. Also I'm changing the STATIC_ASSERT to a less drastic STATIC_WARNING Robert Ramey Chris Coleman wrote:
Robert Ramey wrote:
Actually I believe the following will work.
const gps_position * const g_ptr = new gps_position(35, 59, 24.567f); oa << g_ptr;
Yep, thats done it. Thanks for your help.
FWIW, I agree it is fairly obscure, since the obvious const * solution was my origional attempt at solving the error, and I probably wouldn't have arrived at this alone...
Cheers Chris
This message has been checked for viruses but the contents of an attachment may still contain software viruses, which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.