mirror of
https://github.com/qicosmos/rest_rpc.git
synced 2026-08-30 00:50:48 +08:00
fix compile
This commit is contained in:
@@ -218,13 +218,13 @@ void test_echo() {
|
||||
|
||||
{
|
||||
// safe call, same with `client.call<std::string>("echo", "test")`
|
||||
auto result = client.call<echo>("test");
|
||||
auto result = client.call_s<echo>("test");
|
||||
std::cout << result << std::endl;
|
||||
}
|
||||
|
||||
{
|
||||
// safe call member function
|
||||
auto result = client.call<&dummy::add>(1, 2);
|
||||
auto result = client.call_s<&dummy::add>(1, 2);
|
||||
std::cout << result << std::endl;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user