RE: [Audacity-devel] Submission of Equalization effect
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: Mitch G. <mg...@mi...> - 2003-01-15 22:57:55
|
>Brian, > >> class someclass : public somebase >> { >> public: >> //MSVC did not like the statement below >> static const int onehundred = 100; >> ....... > >Yes, that's a known limitation of MSVC++. Last night I looked in my C++ books, and one of them claimed that some years ago they changed the definition of ANSI C++ so that it no longer allows that type of combined declaration. That is you used to be able to do: class foo { int x; static int y; }; and just go ahead and use y. Now you are supposed to do it as class foo { int x; static int y; } // Not in the header file you have this: int foo::y; This is true whether or not you initialize the variable y. So MSVC++ is following the ANSI definition, g++ is allowing the older construct. I am going to change these things to enums, since they don't really need to be static const int members anyway. I couldn't get in to CVS last night or it would already be done. - Mitch Golden |