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

non_const_getter doesn't work with optional or array fields

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • IDL
    • None
    • Service Arch

    Description

      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.

      Attachments

        Activity

          People

            backlog-server-servicearch Backlog - Service Architecture
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: