micro-test-plus 6.0.0
µTest++ Testing Framework
Loading...
Searching...
No Matches
micro_os_plus::micro_test_plus::detail::legacy_checkable Concept Reference

Concept satisfied when a type was accepted by expect() and require() before the exclusion of the suspicious conditions. More...

#include <extension.h>

Concept definition

template<class T>
and requires (const T& t) { t ? true : false; }
Concept satisfied when a type was accepted by expect() and require() before the exclusion of the susp...
Definition extension.h:506
Concept satisfied when a type is contextually convertible to bool, but is most likely not a condition...
Definition extension.h:239
Concept satisfied when a type can be used as a test expression in expect() or require().
Definition extension.h:403

Detailed Description

Template Parameters
TThe type to be checked.

Satisfied by the types that are contextually convertible to bool but are not checkable, i.e. the suspicious_condition types. It constrains the deprecated overloads of expect() and require(), which keep such code compiling for one release, with a warning.

Definition at line 505 of file extension.h.