Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1666

improve documentation of element::bool()

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.4.0
    • Affects Version/s: None
    • Component/s: BSON
    • None
    • Fully Compatible

      The documentation for `element::bool()` says

          Conversion operator to bool which is true for valid elements.

      This might be clearer thus:

          Conversion operator to bool which is true for valid elements and false for invalid elements.

      (Sadly, not all bool operators in the world really fully catch both sides of the condition.  Being clear that it does saves checking source to be certain, and so makes the library just a bit easier to use.)

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jeff_abrahamson Jeff Abrahamson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: