Skip to content
Snippets Groups Projects

Add output stream operators for all common types

Merged Martin Stump requested to merge implement-ostream-operators-for-common-types into preview-v6.0.0
All threads resolved!

Add output stream operators for all common types

  • include the lightweight <iosfwd> header
  • Format output like IDE inlay hints
  • add tests for ostream operators

The units library immplements ostream operators for all units, so to me this seems like the logical choice to make our own types printable (contrary to what I proposed in #42 (closed)).

The program was tested solely for our own use cases, which might differ from yours.

Martin Stump martin.stump@mercedes-benz.com on behalf of Mercedes-Benz Tech Innovation GmbH, Provider Information

Edited by Martin Stump

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Martin Stump added 1 commit

    added 1 commit

    • b0b7f630 - Include `<iosfwd>` instead of switching ostream operators on/off via define....

    Compare with previous version

  • Martin Stump changed the description

    changed the description

  • Martin Stump requested review from @arauschert

    requested review from @arauschert

  • Martin Stump added 1 commit

    added 1 commit

    • dfa1250b - Output indices when printing list-like types

    Compare with previous version

  • Martin Stump added 1 commit

    added 1 commit

    • 19b8ad90 - Output indices when printing list-like types

    Compare with previous version

  • Andreas Rauschert resolved all threads

    resolved all threads

  • Andreas Rauschert approved this merge request

    approved this merge request

  • Martin Stump mentioned in commit d8187e96

    mentioned in commit d8187e96

  • merged

  • mentioned in issue #87 (closed)

  • Please register or sign in to reply
    Loading