adding is_non_positive traits
Summary:
template <typename SomeInt>
void foo(SomeInt x) {
// yields an error in clang when SomeInt is unsigned and -Werror is used
if(x <= 0) {
//...
}
}
Test Plan: added unit tests
Reviewed By: andrei.alexandrescu@fb.com
FB internal diff: D735735
Showing
Please register or sign in to comment