Closed mike1821 closed 1 year ago
This is not supported.
Why do you want to parse it as a ReplyUPtr
? Normally, you should specify the type you want to parse to. Say the return value is a number, you can parse it to a long long
, if it's a completed type, you can parse it to a tuple or variant or STL container.
Regards
Hi, thank you for your reply.
The thing is that the return value is not the same in all cases. The command is processing a LUA script which in some cases might return an integer while on some other it might return a string...
Anyway, I suppose I will have to adapt the scripts in order to use the same return value in all scenarios.
Regards
In that case, you can parse it as a std::variant, if you're using c++17. Check this for detail.
Regards
Much appreciated, I will check this
Describe the problem Hello I am trying to use the provided ReplyUPtr as a return value for an async interface implementation which I am working on.
However, I am getting the following compilation error.
Did someone experienced a similar issue? Is there an example of using ReplyUPtr?
Environment: