Skip to content
Snippets Groups Projects
Commit 5680ce1e authored by Mark OLESEN's avatar Mark OLESEN
Browse files

STYLE: use spanstream instead of stringstream in more places

- particularly useful in these combinations:

  1.
      OCharStream buf;
      // populate

      ISpanStream is(buf.view());
      // parse

  2.
      // read from file
      ifile.getLine(str);

      ISpanStream is(str);
      // parse

  These avoid making a copy of the character content, compared to
  versions with stringstream:

      OStringStream buf;
      IStringStream is(buf.str());
parent f6825c79
Branches
Tags
Showing
with 111 additions and 66 deletions
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