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.96k stars 1.65k forks source link

http_request and http_response doesn't satisfy the rule of five #1667

Open evilenzo opened 2 years ago

evilenzo commented 2 years ago

As you can see in https://github.com/microsoft/cpprestsdk/blob/master/Release/include/cpprest/http_msg.h http_request and http_response don't satisfy the rule of five and also have a non-trivial destructor. So no move will work on this types what is actually sad

evilenzo commented 2 years ago

Pull Request: https://github.com/microsoft/cpprestsdk/pull/1668