You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[SUGGESTION] Don't accept implicit integers in [[assert: 1]] #363
This is minor one.
When skimming through some snippets, I got impression that you can write [[assert: 42]]
Which is actually not checking for value, (say, of short-syntax function), and just implicit converted to bool
According to this note at ES.87, checking for pointers is good, but checking integers without comparison can be suspicious.
Probably assert accepting only bools or pointers can be implemented with the help of concepts like std::is_arithmetic_v and std::is_pointer_v instead of simply bool
Activity
JohelEGP commentedon Apr 12, 2023