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

IDL: remove ref-qualification on getters

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • Service Arch 2022-05-02, Service Arch 2022-05-16

    Description

      This is an attempt to guard against calling getters on temporaries, a harmless thing to do that can't be prevented by this technique anyway.

      Getting rid of this stuff will simplify the IDL generator and give us generated classes with behavior that is less surprising.

      https://quuxplusone.github.io/blog/2019/03/11/value-category-is-not-lifetime/
      (Thx redbeard0531 for the link)

      Attachments

        Activity

          People

            billy.donahue@mongodb.com Billy Donahue
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: