@@ -302,6 +302,36 @@ class winhttp_request_context final : public request_context
302
302
{
303
303
}
304
304
305
+ #if defined(_MSC_VER) && _MSC_VER < 1900
306
+ compression_state (const compression_state&) = delete;
307
+ compression_state (compression_state&& other)
308
+ : m_buffer(std::move(other.m_buffer))
309
+ , m_acquired(other.m_acquired)
310
+ , m_bytes_read(other.m_bytes_read)
311
+ , m_bytes_processed(other.m_bytes_processed)
312
+ , m_needs_flush(other.m_needs_flush)
313
+ , m_started(other.m_started)
314
+ , m_done(other.m_done)
315
+ , m_chunked(other.m_chunked)
316
+ , m_chunk_bytes(other.m_chunk_bytes)
317
+ , m_chunk(std::move(other.m_chunk))
318
+ {}
319
+ compression_state& operator =(const compression_state&) = delete ;
320
+ compression_state& operator =(compression_state&& other) {
321
+ m_buffer = std::move (other.m_buffer );
322
+ m_acquired = other.m_acquired ;
323
+ m_bytes_read = other.m_bytes_read ;
324
+ m_bytes_processed = other.m_bytes_processed ;
325
+ m_needs_flush = other.m_needs_flush ;
326
+ m_started = other.m_started ;
327
+ m_done = other.m_done ;
328
+ m_chunked = other.m_chunked ;
329
+ m_chunk_bytes = other.m_chunk_bytes ;
330
+ m_chunk = std::move (other.m_chunk );
331
+ return *this ;
332
+ }
333
+ #endif // defined(_MSC_VER) && _MSC_VER < 1900
334
+
305
335
// Minimal state for on-the-fly decoding of "chunked" encoded data
306
336
class _chunk_helper
307
337
{
0 commit comments