This is kindof off-topic, but I figured it'd be a good place to ask.
VC++ 6.0 will not compile the following:
list<int>::iterator foobar;
It has to be typedeffed. I.e. :
typedef list<int> INT_LIST;
INT_LIST::iterator foobar;
Does anybody know if they've fixed this in .NET?
I'd like to eventually try getting FreeOrion to build with Microsoft's compiler in addition to gcc but this bug makes that impossible.
JB
MSVC++ and templates
Moderator: Committer
There are more ways that MSVC 6.0 is not compliant with the standard than there are Agent Smiths in the new Matrix movie. From what I have been heard (though I don't know for sure), 7.0 (.NET) is intended to be much more compliant. It should prove to be impossible to compile GG under 6.0 for at least one reason I can think of off the top of my head, and perhaps others. If you want this stuff to compile using a MS compiler, it's probably 7.0 or nothing.
-
- Space Krill
- Posts: 2
- Joined: Sun Jun 29, 2003 10:14 pm
Re: MCVC++ and templates
Have you tried installing the latest service packs? That code seems to work in my 6.0 just fine...
Edit: by "that code" I mean the snippet in the opening post. I haven't tried compiling GG.
Edit: by "that code" I mean the snippet in the opening post. I haven't tried compiling GG.