Delete operator=(std::string&&) from StringPiece
[folly.git] / folly / Range.h
index 9c9b68b26514712568ab2d1579dbdc5e63beeee3..9e392cf42de4f20b35e610fd0cfdd846d89d2e51 100644 (file)
@@ -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();