Fix clang compilation error
This commit is contained in:
parent
689be10891
commit
be5a886f8f
@ -312,6 +312,10 @@ struct GenericStringRef {
|
|||||||
GenericStringRef(const CharType* str, SizeType len)
|
GenericStringRef(const CharType* str, SizeType len)
|
||||||
: s(str), length(len) { RAPIDJSON_ASSERT(s != 0); }
|
: s(str), length(len) { RAPIDJSON_ASSERT(s != 0); }
|
||||||
|
|
||||||
|
GenericStringRef(const GenericStringRef& rhs) : s(rhs.s), length(rhs.length) {}
|
||||||
|
|
||||||
|
GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; }
|
||||||
|
|
||||||
//! implicit conversion to plain CharType pointer
|
//! implicit conversion to plain CharType pointer
|
||||||
operator const Ch *() const { return s; }
|
operator const Ch *() const { return s; }
|
||||||
|
|
||||||
@ -322,8 +326,6 @@ private:
|
|||||||
//! Disallow construction from non-const array
|
//! Disallow construction from non-const array
|
||||||
template<SizeType N>
|
template<SizeType N>
|
||||||
GenericStringRef(CharType (&str)[N]) /* = delete */;
|
GenericStringRef(CharType (&str)[N]) /* = delete */;
|
||||||
|
|
||||||
GenericStringRef& operator=(const GenericStringRef&);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Mark a character pointer as constant string
|
//! Mark a character pointer as constant string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user