title: std::getline removes whitespaces?
body: <p>So I am creating a command line application and I am trying to allow commands with parameters, or if the parameter is enclosed with quotations, it will be treated as 1 parameter.</p>
  
  <p>Example: test "1 2"</p>
  
  <p>"test" will be the command, "1 2" will be a single parameter passed.</p>
  
  <p>Using the following code snippet:</p>
  
  <pre><code>while(getline(t, param, ' ')) {
      if (param.find("\"") != string::npos) {
          ss += param;
          if (glue) {
              glue = false;
              params.push_back(ss);
              ss = "";
          }
          else {
              glue = true;
          }
      }
      else {
          params.push_back(param);
      }
  }
  </code></pre>
  
  <p>However std::getline seems to auto remove whitespace which is causing my parameters to change from "1 2" to "12"</p>
  
  <p>I've looked around but results are flooded with "How to remove whitespace" answers rather than "How to not remove whitespace"</p>
  
  <p>Anybody have any suggestions?</p>