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

Avoid makePromiseFuture in future_util.h

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Service Arch 2021-10-04
    • 35
    • 1

    Description

      The structured bindings use here is causing some toolchains to emit an error:

      src/mongo/util/future_util.h:569:10: error: structured binding refers to incomplete class type 'mongo::PromiseAndFuture<void>' [-Werror]
      

      It's unclear why this is happening exactly but maybe future_util.h doesn't need to use structured binding or PromiseAndFuture at all.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: