[SERVER-49727] Add '<<' operator overload to write SBE TypeTags and Values into str::stream Created: 20/Jul/20  Updated: 29/Oct/23  Resolved: 07/Aug/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.7.0

Type: Improvement Priority: Major - P3
Reporter: Anton Korshunov Assignee: Andrii Dobroshynskyi (Inactive)
Resolution: Fixed Votes: 0
Labels: qexec-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Query 2020-08-10, Query 2020-08-24
Participants:

 Description   

Currently we can use '<<' operator to write into std::ostream. Quite often, we need to output a TypeTag into an uassert message, which uses std::stream. It would be useful to have another overload to support '<<' operator with str::stream.



 Comments   
Comment by Githook User [ 07/Aug/20 ]

Author:

{'name': 'Andrii Dobroshynskyi', 'email': 'andrii.dobroshynskyi@mongodb.com'}

Message: SERVER-49727 Overload << for SBE tags and values into str::stream
Branch: master
https://github.com/mongodb/mongo/commit/a7a9fa2b01104780e9c0e83f26621317fa7254b6

Generated at Thu Feb 08 05:20:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.