From 262b496f25be27978abe7d98f20978820ecaeec8 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 16 Apr 2018 21:14:37 +0000 Subject: Write out StringViewTemplate::Operator=(). Avoids some weirdness in mac toolchain with external templates and Operator() = default; instantiation. Change-Id: Ieec5dc08ad559752278a6f1de8fc69aad2b4e30c Reviewed-on: https://pdfium-review.googlesource.com/30810 Reviewed-by: dsinclair Reviewed-by: Tom Sepez Commit-Queue: Tom Sepez --- core/fxcrt/string_view_template.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/fxcrt/string_view_template.h b/core/fxcrt/string_view_template.h index 05694cf244..1780e47b03 100644 --- a/core/fxcrt/string_view_template.h +++ b/core/fxcrt/string_view_template.h @@ -81,7 +81,10 @@ class StringViewTemplate { return *this; } - StringViewTemplate& operator=(const StringViewTemplate& src) = default; + StringViewTemplate& operator=(const StringViewTemplate& src) { + m_Span = src.m_Span; + return *this; + } const_iterator begin() const { return reinterpret_cast(m_Span.begin()); -- cgit v1.2.3