It be very useful to have assert returning a value in c++ like this:
SomeType someValue = assert(getSomeValue());
instead of
SomeType someValue = getSomeValue();
assert(someValue);
Is there any standard way to do this?
It be very useful to have assert returning a value in c++ like this:
SomeType someValue = assert(getSomeValue());
instead of
SomeType someValue = getSomeValue();
assert(someValue);
Is there any standard way to do this?
assertTrue(),assertNotNull(), etc.)