Has anyone noticed that c++ (that is, the compiler, not the language) requires main to be declared with an "int" return type with the new compiler version?
It doesn't make any difference to me since, by habit, I use an int return type. But I'm taking a class where I have to modify the instructor's program, and his code uses voids, and that's where I noticed this.
I modified an assignment I did last semester (with the December tools) which worked last month. I changed from "int main (void)" to "void main (void) and I got the compiler complaint that "'main' must return int".
I'm busy with school and don't have much time to look into this, so I'm just making this observation since I haven't seen it posted in any threads. (I'm not currently a CS major so it's not a high priority for me.)