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

Home » U++ Library support » U++ Core » int16 support in Value?
int16 support in Value? [message #15656] Fri, 02 May 2008 11:35 Go to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
Would it be possible to add 'operator int16' to Value? I often want to read directly from a ctrl into a data structure containing shorts and writing (short)(int) everywhere is ugly and annoying. Converting the other way works fine as it's an up-cast.

I've added it to my version without issue, but is there some subtle problem I'm missing?
 
Read Message
Read Message
Read Message
Previous Topic: cout, cin etc. question
Next Topic: StaticMutex::Get does not compile in svn
Goto Forum:
  


Current Time: Tue Apr 28 20:01:20 GMT+2 2026

Total time taken to generate the page: 0.00549 seconds