Details
-
Improvement
-
Resolution: Fixed
-
Major - P3
-
None
-
Fully Compatible
-
Query Execution 2021-03-22
Description
Let's say I have a boost::optional<T>. I would like to be able to write the following:
boost::optional<T> myT = getT();
|
tassert(1234500, "expected a non-none T", myT);
|
However, today I have to write either
tassert(1234500, "expected a non-none T", static_cast<bool>(myT));
|
or
tassert(1234500, "expected a non-none T", myT.has_value());
|
Attachments
Issue Links
- is caused by
-
SERVER-55017 iassert/tassert evaluate arguments when untriggered
-
- Closed
-