[SERVER-34396] Fail to compile if io manipulators like std::hex are passed to StringBuilder/str::stream Created: 09/Apr/18  Updated: 29/Oct/23  Resolved: 18/Apr/18

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 3.7.6

Type: Improvement Priority: Major - P3
Reporter: Mathias Stearn Assignee: Mathias Stearn
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-34307 replace invariant(false) with MONGO_U... Closed
Backwards Compatibility: Fully Compatible
Sprint: Platforms 2018-04-23
Participants:

 Description   

Currently they implicitly decay to bool and append '1' to the stream. This causes a very confusing warning in compilers newer than our official toolchain.



 Comments   
Comment by Githook User [ 18/Apr/18 ]

Author:

{'email': 'mathias@10gen.com', 'name': 'Mathias Stearn', 'username': 'RedBeard0531'}

Message: SERVER-34396 Fail to compile if io manipulators like std::hex are passed to StringBuilder/str::stream

This includes a partial revert of 80f409d1311eb8d20251d17be474aff382538b84
(SERVER-34307) to address this bug.
Branch: master
https://github.com/mongodb/mongo/commit/d976399cc97e4973cbd48191aa5730e8f01547a8

Generated at Thu Feb 08 04:36:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.