From 870d432b18f77cdda6bf9f06cb47941c65ea01ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rimas=20Misevi=C4=8Dius?= Date: Thu, 8 Aug 2019 21:55:31 +0300 Subject: [PATCH] Make url's move constructor & move assignment defaulted --- src/url.h | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/src/url.h b/src/url.h index a6cf379..9b8171b 100644 --- a/src/url.h +++ b/src/url.h @@ -82,25 +82,8 @@ class url { url& operator=(const url& src) = default; // Move constructor & assignment - // NOTE: the VS2013 doesn't support defaulted move constructors and - // move assignment operators; see: - // https://msdn.microsoft.com/en-us/library/hh567368.aspx - // https://stackoverflow.com/questions/24573963 - url(url&& src) - : norm_url_(std::move(src.norm_url_)) - , part_end_(src.part_end_) - , scheme_inf_(src.scheme_inf_) - , flags_(src.flags_) - , path_segment_count_(src.path_segment_count_) - {} - url& operator=(url&& src) { - norm_url_ = std::move(src.norm_url_); - part_end_ = src.part_end_; - scheme_inf_ = src.scheme_inf_; - flags_ = src.flags_; - path_segment_count_ = src.path_segment_count_; - return *this; - } + url(url&& src) = default; + url& operator=(url&& src) = default; void clear();