ソースを参照

Use && for parameter of boundary

yhirose 5 年 前
コミット
969cccd52a
1 ファイル変更1 行追加1 行削除
  1. 1 1
      httplib.h

+ 1 - 1
httplib.h

@@ -2817,7 +2817,7 @@ class MultipartFormDataParser {
 public:
   MultipartFormDataParser() = default;
 
-  void set_boundary(std::string boundary) { boundary_ = std::move(boundary); }
+  void set_boundary(std::string &&boundary) { boundary_ = boundary; }
 
   bool is_valid() const { return is_valid_; }