[SERVER-47937] non_const_getter doesn't work with optional or array fields Created: 04/May/20  Updated: 06/Dec/22  Resolved: 21/Dec/21

Status: Closed
Project: Core Server
Component/s: IDL
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Matthew Russotto Assignee: Backlog - Service Architecture
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-65415 Complete TODO listed in SERVER-47937 Open
related to SERVER-62222 Remove TODO comment listed in SERVER-... Backlog
Assigned Teams:
Service Arch
Participants:

 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.



 Comments   
Comment by Lauren Lewis (Inactive) [ 21/Dec/21 ]

We haven’t heard back from you in at least 1 year, so I'm going to close this ticket. If this is still an issue for you, please provide additional information and we will reopen the ticket.

Generated at Thu Feb 08 05:15:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.