[SERVER-40528] Don't allow constructing ConstDataRange from bool Created: 08/Apr/19  Updated: 29/Oct/23  Resolved: 17/Apr/19

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

Type: Bug Priority: Major - P3
Reporter: Jonathan Reams Assignee: Jonathan Reams
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 2019-04-22
Participants:

 Description   

std::is_integral<bool>() returns true, which means you could construct a ConstDataRange from a vector of bools, which isn't quite what we want.



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

Author:

{'email': 'jbreams@mongodb.com', 'name': 'Jonathan Reams', 'username': 'jbreams'}

Message: SERVER-40528 Do not allow constructing ConstDataRange from bool
Branch: master
https://github.com/mongodb/mongo/commit/b6d336bee9c7adb334333bcb22c432d376458af3

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