|
|
Home » U++ Library support » U++ Core » Value<int64> and Value<int> mess
|
|
Re: Value<int64> and Value<int> mess [message #26726 is a reply to message #26724] |
Fri, 21 May 2010 18:22 |
Mindtraveller
Messages: 917 Registered: August 2007 Location: Russia, Moscow rgn.
|
Experienced Contributor |
|
|
I'm afraid these types are not interconvertible in my practice (ValueTo<> generates exception in many cases).
Here is simplified version of previous code:
CONSOLE_APP_MAIN
{
String s = "11";
int i = ValueTo<int>(StdConvertInt().Scan(s)); //generates exception
}
while this code works:
CONSOLE_APP_MAIN
{
String s = "11";
int i = ValueTo<int64>(StdConvertInt().Scan(s)); //OK!
}
It is just one of many cases (the absence of interconvertibility makes handling Ctrl::GetData() a headache too).
[Updated on: Fri, 21 May 2010 18:26] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Fri Sep 20 15:37:36 CEST 2024
Total time taken to generate the page: 0.03353 seconds
|
|
|