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

Home » U++ Library support » U++ Core » Value class suggestion [FEATURE REQUEST]
Value class suggestion [FEATURE REQUEST] [message #2374] Mon, 10 April 2006 10:03 Go to previous message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

Hi!

Very often I have to use awful casting to be able to do:

Value v(1);

if((int)v == 1)
{
...
}

Could operator==(String &) and operator==(int) (two common cases) be added to Value class?

This code seems to be much more 'eye-candy'..
if(v == 1)

PS: Of course operator!= should be extended too..

[Updated on: Mon, 01 May 2006 15:09] by Moderator

Report message to a moderator

 
Read Message
Read Message
Previous Topic: What is lock for in MenuBar etc. classes? -[SOLVED]-recursive call
Next Topic: Moveable classes with virtual functions/Documentation error
Goto Forum:
  


Current Time: Mon Apr 27 08:16:59 GMT+2 2026

Total time taken to generate the page: 0.00389 seconds