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

Remove decltype(auto) from generated IDL

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Security 2022-05-16

    Description

      Use of decltype(auto) is unnecessary in generated IDL files since they are generated by machine and have simple type names (i.e. they are not impossible to declare like lambra related types). The use of` decltype(auto) makes the generated code harder to read for human readers as users must jump to the declaration with decltype(auto) and then a second declaration for the actual type.

      This change was introduced SERVER-58110

      Attachments

        Activity

          People

            mark.benvenuto@mongodb.com Mark Benvenuto
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: