Avoid makePromiseFuture in future_util.h

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Service Arch 2021-10-04
    • 35
    • 1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Billy Donahue
            Reporter:
            Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: