U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » Value: String to int - problem or feature?
Re: Value: String to int - problem or feature? [message #36396 is a reply to message #36394] Wed, 23 May 2012 21:13 Go to previous messageGo to previous message
steffen is currently offline  steffen
Messages: 38
Registered: May 2007
Location: Denmark
Member

Thank you for the explanation.

I always thought Value was something like the Delphi Variant type.

I imagined it would use something like CParser::IsNumber if one was trying to convert a string to int.

The manual conversion is OK, I was just annoyed by having to manually convert it every time I looked something up in my configuration map.
I will add some overloaded array operators to my class instead.
My usage will be something like:
ClientSocket(socket, gConfig["Host"], gConfig["Port"])

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Out of memory panic
Next Topic: Serialize of derived classes
Goto Forum:
  


Current Time: Sat May 30 06:34:29 GMT+2 2026

Total time taken to generate the page: 0.00516 seconds