gsl_vector_const_view: pointer to constant or constant pointer
M Joonas Pihlaja
jpihlaja@cc.helsinki.fi
Sun Aug 11 07:46:00 GMT 2002
On Sat, 10 Aug 2002, Fleur Kelpin wrote:
> Hi all!
[snip code with gsl_vector_const_view]
> Am I missing something or can/could/should this be fixed?
IMHO, the 'const' structures in GSL should be avoided. The basic
trouble is the constness-of-container vs. constness-of-containee
difficulty as you point out, punctuated by the fact that vector
views are themselves 'containers' for vectors (that in turn are
containers for the vector data itself). C (and arguably C++,
without jumping through hoops) does not really facilite making
the difference.
Regards,
Joonas Pihlaja
More information about the Gsl-discuss
mailing list