microsoft / cpprestsdk

The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Other
7.91k stars 1.64k forks source link

The copy constructor for the variable passed to pplx::create_task is executed 5 times. #1720

Open toto45638 opened 1 year ago

toto45638 commented 1 year ago

When a lambda is passed to pplx::create_task, a copy constructor of the passed variable is executed 5 times when captured.