From af24d541d129852debf03bcf217212037a3291ad Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Sat, 18 Oct 2014 08:16:12 -0700 Subject: [PATCH] Workaround for MSVC move special members. --- src/beast/beast/http/URL.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/beast/beast/http/URL.h b/src/beast/beast/http/URL.h index 7037c5e3e6..459e5a6687 100644 --- a/src/beast/beast/http/URL.h +++ b/src/beast/beast/http/URL.h @@ -21,6 +21,7 @@ #define BEAST_HTTP_URL_H_INCLUDED #include +#include namespace beast { @@ -51,7 +52,22 @@ public: URL& operator= (URL const& other) = default; /** Move construct a URL. */ +#ifdef _MSC_VER + URL (URL&& other) + : m_scheme(std::move(other.m_scheme)) + , m_host(std::move(other.m_host)) + , m_port(other.m_port) + , m_port_string(std::move(other.m_port_string)) + , m_path(std::move(other.m_path)) + , m_query(std::move(other.m_query)) + , m_fragment(std::move(other.m_fragment)) + , m_userinfo(std::move(other.m_userinfo)) + { + } + +#else URL (URL&& other) = default; +#endif /** Returns `true` if this is an empty URL. */ bool