qicosmos / rest_rpc

modern C++(C++11), simple, easy to use rpc framework
MIT License
1.66k stars 365 forks source link

Little error in sample codes.... #3

Open objects76 opened 5 years ago

objects76 commented 5 years ago

First.... thank you for your great/simple rpc lib.

The following codes in examples\appclient\client.hpp has error, right? `Maybe ... client.async_call("add", a,b) ?`

std::future<req_result> async_add(int a, int b) {
    return client_.async_call("add", a, b);
}
qicosmos commented 5 years ago

yeah, you are right, i didn't update the app_client to the latest code, i will do the update soon.

qicosmos commented 5 years ago

I have fixed the compile error