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

non_const_getter doesn't work with optional or array fields

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: IDL
    • None
    • Service Arch

      It is possible to declare a struct field as having a non_const_getter in the IDL, and this means the getter returns a mutable reference to the field rather than a const reference. However, this does not work for optional fields nor for array fields, which reduces its usefulness.

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: