Details
-
Improvement
-
Resolution: Fixed
-
Trivial - P5
-
None
-
None
-
Fully Compatible
-
Repl 2018-04-09
Description
We use invariant(false) a lot in the codebase when we really mean MONGO_UNREACHABLE. Using the MONGO_UNREACHABLE macro also sends a signal to the compiler that execution will not proceed past that location in the code (See SERVER-29780 for example).
Attachments
Issue Links
- related to
-
SERVER-34396 Fail to compile if io manipulators like std::hex are passed to StringBuilder/str::stream
-
- Closed
-