jsonrpcx / json-rpc-cxx

JSON-RPC for modern C++
MIT License
251 stars 44 forks source link

Passing std::vector back #22

Closed gerald-brandt closed 3 years ago

gerald-brandt commented 3 years ago

Is there any way to pass a std::vector back to the caller, or some other type of array?

cinemast commented 3 years ago

Hi gerald!

I added an example on how to use std::vector as return type. Basically, you just use it as a return type on the method, there is nothing special required.