chriskohlhoff / asio

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

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

Open zagrichanskiy opened 2 months ago

zagrichanskiy commented 2 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.