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

Remove Value(const char* value) constructor

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

      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@mongodb.com Tess Avitabile (Inactive)
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: