Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » Witz and map variable
Re: Witz and map variable [message #38091 is a reply to message #38089] Fri, 30 November 2012 08:30 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Zbych wrote on Fri, 30 November 2012 07:51

dolik.rce wrote on Fri, 30 November 2012 07:41


It all goes down to the compiler, it decides that the 0 is not integer, but empty string


Bug or feature? Smile


I'd say it is not a feature Smile Perhaps a limitation Smile

I think it is possible to solve by adding new overload of Add (and perhaps also similar one for Set):
	void Add(int n, const Value& value)           { Add(Value(n), value); }


Mirek, what do you think? I'm not familiar enough with the Value * internals, so I can't really tell if it breaks anything else Smile

Honza
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to close a Thread?
Next Topic: What's wrong with this code?
Goto Forum:
  


Current Time: Fri May 10 11:21:24 CEST 2024

Total time taken to generate the page: 0.01741 seconds