Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 421
    • Issues 421
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 8
    • Merge requests 8
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #534
Closed
Open
Issue created Jul 17, 2017 by Mark OLESEN@markMaintainer

OStringStream rewind probably not behaving as expected

The rewind only repositions the output pointer, but does not truncate the output buffer. Eg,

OStringStream os;
os << "1234567890";
os.rewind();
os << "abc";

produces "abc4567890" as output, not "abc" as may be expected.

Suggested recourse, provide explicit reset() method to reposition output pointer and buffer.

@andy

Assignee
Assign to
Time tracking