From -4974210185837501624
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,8cd1d287d11edee5,start
X-Google-Attributes: gidf78e5,public
From: "Gary Hinger" <garyh@zipperint.com>
Subject: Quick question about const function parameters
Date: 2000/10/20
Message-ID: <39ef6c88$1_2@news.nwlink.com>#1/1
X-Deja-AN: 683832569
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
X-Priority: 3
X-Relay-IP: 128.250.1.22
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
X-Trace: 19 Oct 2000 14:50:00 -0700, unassigned.zipperint.com
Organization: Northwest Link
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-MSMail-Priority: Normal
Newsgroups: comp.std.c++

Please tell me if am right (and that VS6 is wrong). Defining a function's
parameter to be const is completely irrelevant except in the actual
implementation. Thus, the following should work according to the Standard.
Thanks.

void foo( void (*)(int) );
void bar( int const );

void test() {foo( bar );}



---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]
[ Note that the FAQ URL has changed!  Please update your bookmarks.     ]




