C++ question

Andy Civil <[email protected]>
Newsgroups gmane.user-groups.linux.ottawa.general
Message-ID <[email protected]>
I had a program where I had this:
a = new (float *)[v];
the brackets were intended to clarify that this was an array of pointers to 
float, and not anything else... the thing is, the compiler now complains about 
the brackets, and accuses me of trying to do a cast (which I'm not, of course). 
It worked again if I changed it to:
a = new float*[v];
Can anyone shed any light on what's changed in the last couple of years?

And yes, I know this is C++, not Linux, I'm hoping the audience is right!

-- 
Andy
-- 
OCLUG general discussion list
[email protected]
http://oclug.on.ca/mailman/listinfo/oclug
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.