A
alexey_m
Hi!
Code:
std::map<int,MyClass*> m;
int mapsize=m.max_size();
So, mapsize is -1.
Can anyone tell me why?
Compile with g++ 3.2.2 under Linux. Under Windows with MS Compiler
everything is OK (not -1).
PS: for std::vector max_size() returns correct value.
Thanks.
Code:
std::map<int,MyClass*> m;
int mapsize=m.max_size();
So, mapsize is -1.
Can anyone tell me why?
Compile with g++ 3.2.2 under Linux. Under Windows with MS Compiler
everything is OK (not -1).
PS: for std::vector max_size() returns correct value.
Thanks.