This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: gsl_vector_const_view: pointer to constant or constant pointer
- From: M Joonas Pihlaja <jpihlaja at cc dot helsinki dot fi>
- To: <gsl-discuss at sources dot redhat dot com>
- Date: Sun, 11 Aug 2002 17:46:20 +0300 (EET DST)
- Subject: Re: gsl_vector_const_view: pointer to constant or constant pointer
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