From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12091 invoked by alias); 11 Aug 2002 22:32:58 -0000 Mailing-List: contact gsl-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gsl-discuss-owner@sources.redhat.com Received: (qmail 12083 invoked from network); 11 Aug 2002 22:32:57 -0000 Received: from unknown (HELO blueyonder.co.uk) (195.188.53.122) by sources.redhat.com with SMTP; 11 Aug 2002 22:32:57 -0000 Received: from pcow034o.blueyonder.co.uk ([127.0.0.1]) by blueyonder.co.uk with Microsoft SMTPSVC(5.5.1877.757.75); Sun, 11 Aug 2002 23:31:41 +0100 Received: from localhost (unverified [80.192.11.25]) by pcow034o.blueyonder.co.uk (Content Technologies SMTPRS 4.2.9) with ESMTP id ; Sun, 11 Aug 2002 23:31:23 +0100 Received: by network-theory.co.uk via sendmail from stdin id (Debian Smail3.2.0.102) for fleur@bio.vu.nl; Sun, 11 Aug 2002 23:17:47 +0100 (BST) From: Brian Gough MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-ID: <15702.57994.463289.495474@debian> Date: Sun, 11 Aug 2002 15:32:00 -0000 To: Fleur Kelpin Cc: gsl-discuss@sources.redhat.com Subject: Re: gsl_vector_const_view: pointer to constant or constant pointer In-Reply-To: References: X-SW-Source: 2002-q3/txt/msg00119.txt.bz2 Fleur Kelpin writes: > Am I missing something or can/could/should this be fixed? > (I think this can be done by moving the const inside the struct: > > typedef struct > { > const gsl_vector vector; > } _gsl_vector_const_view; It's not possible to initialise the struct element with this form in ANSI C (although it is possible in gcc). This is why the const'ing is done at a higher level in a wrapper.