Remove Value(const char* value) constructor

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 3.5.2
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • None
    • Fully Compatible
    • Query 2017-01-23
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The convenience of the Value(const char* value) constructor doesn't seem to outweigh the potential risk (see SERVER-23356 and SERVER-25991) for erroneously attempting to construct a string literal with an embedded null byte.

      The Value(StringData value) and user-defined literal constructor for StringData from SERVER-24651 seem sufficient for syntactic convenience.

            Assignee:
            Tess Avitabile (Inactive)
            Reporter:
            Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: