diff --git a/Release/include/cpprest/http_msg.h b/Release/include/cpprest/http_msg.h index 55c0433c94..353281ffbc 100644 --- a/Release/include/cpprest/http_msg.h +++ b/Release/include/cpprest/http_msg.h @@ -503,6 +503,8 @@ class _http_response final : public http::details::http_msg_base _http_response(http::status_code code) : m_status_code(code) {} + virtual _http_response() = default; + http::status_code status_code() const { return m_status_code; } void set_status_code(http::status_code code) { m_status_code = code; } @@ -853,7 +855,7 @@ class _http_request final : public http::details::http_msg_base, public std::ena _ASYNCRTIMP _http_request(std::unique_ptr server_context); - virtual ~_http_request() {} + virtual ~_http_request() = default; http::method& method() { return m_method; } @@ -951,11 +953,6 @@ class http_request /// Request method. http_request(http::method mtd) : _m_impl(std::make_shared(std::move(mtd))) {} - /// - /// Destructor frees any held resources. - /// - ~http_request() {} - /// /// Get the method (GET/PUT/POST/DELETE) of the request message. ///