[SERVER-40621] Add fmt::formatter<mongo::HostAndPort> Created: 12/Apr/19  Updated: 29/Oct/23  Resolved: 15/Apr/19

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

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

Backwards Compatibility: Fully Compatible
Sprint: Dev Tools 2019-04-22
Participants:

 Description   

Allows HostAndPort to be formatted with libfmt, without a toString, etc.
e.g.:

    s = "couldn't connect to host {}: {}"_format(host, errorMessage);



 Comments   
Comment by Githook User [ 29/Apr/19 ]

Author:

{'email': 'billy.donahue@mongodb.com', 'name': 'Billy Donahue', 'username': 'BillyDonahue'}

Message: SERVER-40621 De-template the operator for StringBuilderImpl<A> << HostAndPort
Branch: master
https://github.com/mongodb/mongo/commit/f381a394a38f6f513a10615b07f0916b886fc3a9

Comment by Githook User [ 25/Apr/19 ]

Author:

{'email': 'billy.donahue@mongodb.com', 'name': 'Billy Donahue', 'username': 'BillyDonahue'}

Message: SERVER-40621 add modifier rejection to unit HostAndPort Fmt test
Branch: master
https://github.com/mongodb/mongo/commit/9f54c57d343e86ce11c136acc2b3d6a5aedbc914

Comment by Githook User [ 15/Apr/19 ]

Author:

{'email': 'billy.donahue@mongodb.com', 'name': 'Billy Donahue', 'username': 'BillyDonahue'}

Message: SERVER-40621 Add fmt::formatter<mongo::HostAndPort>
Branch: master
https://github.com/mongodb/mongo/commit/3a5d5e26360584360708f75ad0138155a366c1c8

Comment by Billy Donahue [ 12/Apr/19 ]

code review URL: https://mongodbcr.appspot.com/470620021

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