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

improve documentation of element::bool()

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 3.4.0
    • None
    • BSON
    • None
    • Fully Compatible

    Description

      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.)

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: