This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]