Topic: DR: volatile void as function parameter type
Author: Michiel Salters<Michiel.Salters@cmg.nl>
Date: Tue, 8 Jan 2002 15:23:58 GMT Raw View
8.3.5p2 restricts the use of void as parameter type, but does not mention
CV qualified versions. Since void f(volatile void) isn't a callable function
anyway, 8.3.5 should also ban cv-qualified versions. A possible resolution
would be to add (cv-qualified) before void in "The parameter list (void) is
equivalent to the empty parameter list. Except for this special case,
<INSERT>(cv-qualified) </INSERT> void shall not be a parameter type (though
types
derived from void, such as void*, can)."
Regards,
--
Michiel Salters
Consultant Technical Software Engineering
CMG Trade, Transport & Industry
Michiel.Salters@cmg.nl
---
[ 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 ]