Constructing a StatusWith from a call to Status::OK() should fail to compile

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • Server Programmability
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      It is always an error to construct a StatusWith from an OK status. In the case of Status::OK() we can detect that at compile time. This can easily happen when converting a function from returning Status to StatusWith.

            Assignee:
            Unassigned
            Reporter:
            Mathias Stearn
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: