Home » U++ Library support » U++ MT-multithreading and servers » Witz and map variable
| Re: Witz and map variable [message #38088 is a reply to message #37981] |
Fri, 30 November 2012 07:41   |
|
|
Ha, I finally found the actual problem! 
It all goes down to the compiler, it decides that the 0 is not integer, but empty string on the line yn.Add(0,"NO") So it saves it to the map with "" as key, not 0. To make this work, you have to cast the 0 to Value first: ValueMap yn;
yn.Add(Value(0), "YES");
yn.Add(1,"NO");
Best regards,
Honza
|
|
|
|
Goto Forum:
Current Time: Sun Nov 30 20:50:23 CET 2025
Total time taken to generate the page: 0.22674 seconds
|