News for hackers. Stuff that matters.
Re:Show HN: Drogon – A C++14/17 based high performance HTTP ... by an-tao on Tuesday March 19, 2019 @09:11AM (#19430414)
Good question! If the type of the parameter of callback is an r-reference, users must move resp into the callback. Note that the resp is a shared_ptr, which means callback can reuse the buffer or do anything to the resp object and copying smart pointers does not require too much cost.

There are no comments on this comment yet.