Home » Developing U++ » U++ Developers corner » ASSERT when using ValueMap
Re: ASSERT when using ValueMap [message #47700 is a reply to message #47699] |
Tue, 07 March 2017 15:00 |
|
mirek
Messages: 13978 Registered: November 2005
|
Ultimate Member |
|
|
NilaT wrote on Tue, 07 March 2017 14:54Sorry for being too dumb to fix a 'trivial' error.
Ah, you misunderstood and that makes me sound like I am ranting...
Error was 'borderline' - by that I mean that it was very unusual usage (there reading docs would help). Anyway, I decided it should work even if used that atypical way, so had to fix that. It was not anything you were supposed to fix, that was my task.
It looked 'trivial' to fix at first, but things were more complicated than I anticipated.
What you did 'wrong' is that you have used RawToValue and ValueTo without reason and perhaps without complete understanding what they mean...
Params params = HandleParams(param1, param2); // Params is a struct which contains some Strings, some ints, and a Time Variable
ValueMap result;
result.Add("key1", params.someVar);
ValueMap map = rpc["params"]; // rpc = RpcData type
int x = map["someKey"];
would have worked (I supposed someVar is String or int or something like that).
Mirek
[Updated on: Tue, 07 March 2017 15:03] Report message to a moderator
|
|
|
|
|
ASSERT when using ValueMap
By: NilaT on Tue, 21 February 2017 16:23
|
|
|
Re: ASSERT when using ValueMap
By: NilaT on Wed, 22 February 2017 11:56
|
|
|
Re: ASSERT when using ValueMap
By: NilaT on Mon, 27 February 2017 16:17
|
|
|
Re: ASSERT when using ValueMap
|
|
|
Re: ASSERT when using ValueMap
|
|
|
Re: ASSERT when using ValueMap
By: NilaT on Fri, 03 March 2017 09:29
|
|
|
Re: ASSERT when using ValueMap
By: mirek on Tue, 07 March 2017 00:43
|
|
|
Re: ASSERT when using ValueMap
By: mirek on Tue, 07 March 2017 00:58
|
|
|
Re: ASSERT when using ValueMap
|
|
|
Re: ASSERT when using ValueMap
By: mirek on Tue, 07 March 2017 11:29
|
|
|
Re: ASSERT when using ValueMap
By: mirek on Tue, 07 March 2017 11:42
|
|
|
Re: ASSERT when using ValueMap
|
|
|
Re: ASSERT when using ValueMap
By: mirek on Tue, 07 March 2017 13:47
|
|
|
Re: ASSERT when using ValueMap
By: NilaT on Tue, 07 March 2017 14:54
|
|
|
Re: ASSERT when using ValueMap
By: mirek on Tue, 07 March 2017 15:00
|
|
|
Re: ASSERT when using ValueMap
By: NilaT on Tue, 07 March 2017 11:54
|
|
|
Re: ASSERT when using ValueMap
By: mirek on Tue, 07 March 2017 12:10
|
|
|
Re: ASSERT when using ValueMap
By: NilaT on Tue, 07 March 2017 15:49
|
Goto Forum:
Current Time: Sun May 12 14:59:31 CEST 2024
Total time taken to generate the page: 0.01895 seconds
|