C++ Container classes question (vectors, lists, etc)
Posted on 2004-03-28
For some really weird reason I am getting 2 errors in my vector.h and list.h header files for the C++ container classes. I am using Borland C++ Builder, but that shouldn't make any difference I don't think.
The errors are both:
"Could not find a match for 'std::max( unsigned int, unsigned int)'."
And point to where vector.h, list.h, etc, call the max function (called as just max with no namespace before it). I think the max function it should be using is in algorith.h, but I'm not sure why I'm getting errors as I changed nothing in any of these files, and it worked alright before. I have also tried "using std::vector", but that doesn't help.
Thanks in advance for any help.