From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2ee8e4e2aacbed1c,start X-Google-Attributes: gidfee84,public From: pedwards@cs.wright.edu (Phil Edwards) Subject: const_cast broken for CXX 5.5? Date: 1997/04/22 Message-ID: <5jhm6n$jju$1@alpha.wright.edu>#1/1 X-Deja-AN: 237662899 Organization: $home Newsgroups: comp.unix.osf.osf1 Hello. I'm on a dUnix 3.2c system, using cxx 5.5-004. When given (essentially) the following code, template int Foo:: write (const T &output) { //trim... T *temp; temp = const_cast(&output); //trim... } the compiler fails with error, "Type not followed by "(" in an expression." The "error indicator" appears as: temp = const_cast(&output); -------------------^ According to the Draft Standard, this is, I believe, correct syntax (some of the other _cast statements given as examples in the Standard are even more complicated). Is there something more I need to do here, or is the compiler just behind the times? Thanks for your help. /dev/phil