The boost library defines a boost::future
type, and defines a type boost::asio::use_future
for returning futures from async methods, eg:
std::future<std::size_t> my_future
= my_socket.async_read_some(my_buffer, boost::asio::use_future);
but it's returning a std::future
.
How do I get it to return a boost::future
instead?