-
Type: Improvement
-
Resolution: Fixed
-
Priority: Trivial - P5
-
Affects Version/s: None
-
Component/s: Internal Code
-
None
-
Fully Compatible
-
Repl 2018-04-09
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).
- related to
-
SERVER-34396 Fail to compile if io manipulators like std::hex are passed to StringBuilder/str::stream
- Closed