terminal/src/inc/til
Carlos Zamora ae3f8f3759
Add explicit to bool operators of Point and Rect (#4948)
Found a bug where the following won't work:
```c++
COORD inclusiveEnd{ _end };
```
where `_end` is a `til::point`.

The only fix for this is to replace these instances with this:
```c++
COORD inclusiveEnd = _end;
```

What was happening in the first notation is the implicit conversion of `til::point` to `bool` to `SHORT`. The constructor for COORD only sees one SHORT so it thinks the value should be the definition for X, and Y should stay as 0. So we end up getting `1, 0`.

By adding the explicit keyword to the bool operators, we prevent the accident above from occurring.
2020-03-19 16:12:15 +00:00
..
at.h Use til::some<T,N> to replace the SomeViewports class (#4174) 2020-01-20 20:53:24 +00:00
bitmap.h til::bitmap (#4967) 2020-03-19 16:10:13 +00:00
color.h add til::color, a universal-converting color type (#4108) 2020-03-10 00:17:24 +00:00
point.h Add explicit to bool operators of Point and Rect (#4948) 2020-03-19 16:12:15 +00:00
rectangle.h Add explicit to bool operators of Point and Rect (#4948) 2020-03-19 16:12:15 +00:00
size.h Add explicit to bool operators of Point and Rect (#4948) 2020-03-19 16:12:15 +00:00
some.h til::bitmap (#4967) 2020-03-19 16:10:13 +00:00
u8u16convert.h ensure u8u16 handles lead & continuation bytes in separate txns (#4798) 2020-03-04 11:15:35 -08:00