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

Home » Extra libraries, Code snippets, applications etc. » C++ language problems and code snippets » Dumb bug. Improper use of Null
Re: Dumb bug. Improper use of Null [message #52332 is a reply to message #52318] Mon, 09 September 2019 20:59 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
Yeah, that is unfortunate drawback of allowing fundamental types to be Null... There unfortunately is no way how to make this work.

That said, perhaps we could introduce something like

int64 x = NvlTo<int64>(s);

Conversion to Value works as well, but is a bit slow.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Nested template question
Next Topic: FP exception vs NaN
Goto Forum:
  


Current Time: Fri Sep 04 01:13:40 GMT+2 2026

Total time taken to generate the page: 0.00693 seconds