...
This commit is contained in:
@@ -40,7 +40,9 @@ int main()
|
||||
|
||||
acc.asyncAccept([](std::error_code ec, auto srv) {
|
||||
if (!ec) {
|
||||
receive(std::move(srv));
|
||||
auto sptr = std::make_shared<srv_t>(std::move(srv));
|
||||
receive(sptr);
|
||||
// receive(std::move(srv));
|
||||
} else {
|
||||
std::cout << "ACCEPT ERR: " << ec.message() << "\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user