chriskohlhoff / asio

Asio C++ Library
http://think-async.com/Asio
4.97k stars 1.22k forks source link

Add asio::experimental::promise a default constructor and move assignment operator #1471

Open zagrichanskiy opened 7 months ago

zagrichanskiy commented 7 months ago

Hey guys,

Is it possible to provide default constructor and move assignment to the asio::experimental::promise? We lack the ability to hold the promise as a default constructible class member data. Throwing it onto the heap looks redundant considering that the promise already has its implementation in the shared pointer.