Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-40528

Don't allow constructing ConstDataRange from bool

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.11
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Security 2019-04-22

      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.

            Assignee:
            jonathan.reams@mongodb.com Jonathan Reams
            Reporter:
            jonathan.reams@mongodb.com Jonathan Reams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: