Closed escherstair closed 4 years ago
The code snippet in The event-based approach has an error in the second line:
auto loop = uvw::Loop::getDefault(); auto tcp = loop.resource<uvw::TCPHandle>();
Since loop is a shared_ptr<>, the second line should be auto tcp = loop->resource<uvw::TCPHandle>();
shared_ptr<>
auto tcp = loop->resource<uvw::TCPHandle>();
The code snippet in The event-based approach has an error in the second line:
Since loop is a
shared_ptr<>
, the second line should beauto tcp = loop->resource<uvw::TCPHandle>();