-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Internal Code
-
Labels:
-
Fully Compatible
-
Query Execution 2021-03-22
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());
- is caused by
-
SERVER-55017 iassert/tassert evaluate arguments when untriggered
- Closed