Commit 1c86749b authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot

Delete operator=(std::string&&) from StringPiece

Summary: This can only ever be used unsafely, so delete it.

Reviewed By: yfeldblum

Differential Revision: D4951294

fbshipit-source-id: bbc266d1550fceb48946c7c48e76af07292b4a53
parent cf05856c
......@@ -359,6 +359,9 @@ public:
Range& operator=(const Range& rhs) & = default;
Range& operator=(Range&& rhs) & = default;
template <class T = Iter, typename detail::IsCharPointer<T>::const_type = 0>
Range& operator=(std::string&& rhs) = delete;
void clear() {
b_ = Iter();
e_ = Iter();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment