Add output stream operators for all common types
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
Merge request reports
Activity
added Community Contribution Enhancement labels
requested review from @arauschert, @rparisha2, @jtschea, and @xiaopan
assigned to @mstump
- Resolved by Andreas Rauschert
- Resolved by Andreas Rauschert
added 1 commit
- b0b7f630 - Include `<iosfwd>` instead of switching ostream operators on/off via define....
requested review from @arauschert
added 1 commit
- dfa1250b - Output indices when printing list-like types
added 1 commit
- 19b8ad90 - Output indices when printing list-like types
mentioned in commit d8187e96
mentioned in issue #87 (closed)