terminal/dep
Dustin L. Howett 54a7fce3e0
Move to GSL 3.1.0 (#6908)
GSL 3, the next major version of GSL after the one we're using, replaced
their local implementation of `span` with one that more closely mimics
C++20's span. Unfortunately, that is a breaking change for all of GSL's
consumers.

This commit updates our use of span to comply with the new changes in
GSL 3.

Chief among those breaking changes is:

* `span::at` no longer exists; I replaced many instances of `span::at`
  with `gsl::at(x)`
* `span::size_type` has finally given up on `ptrdiff_t` and become
  `size_t` like all other containers

While I was here, I also made the following mechanical replacements:

* In some of our "early standardized" code, we used std::optional's
  `has_value` and `value` back-to-back. Each `value` incurs an
  additional presence test.
  * Change: `x.value().member` -> `x->member` (`optional::operator->`
    skips the presence test)
  * Change: `x.value()` -> `*x` (as above)
* GSL 3 uses `size_t` for `size_type`.
  * Change: `gsl::narrow<size_t>(x.size())` -> `x.size()`
  * Change: `gsl::narrow<ptrdiff_t>(nonSpan.size())` -> `nonSpan.size()`
    during span construction

I also replaced two instances of `x[x.size() - 1]` with `x.back()` and
one instance of a manual array walk (for comparison) with a direct
comparison.

NOTE: Span comparison and `make_span` are not part of the C++20 span
library.

Fixes #6251
2020-07-14 18:30:59 +00:00
..
CLI11 DEPS: Update CLI11 to 1.9 (#6307) 2020-06-02 18:51:17 +00:00
Console Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00
gsl@0f6dbc9e29 Move to GSL 3.1.0 (#6908) 2020-07-14 18:30:59 +00:00
jsoncpp DEPS: Update jsoncpp to 1.9.3 (#6308) 2020-06-02 18:50:06 +00:00
llvm add audit build step for code formatting check (#1208) 2019-06-11 16:23:21 -07:00
NT Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00
nuget Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00
telemetry Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00
wil@3c00e7f1d8 Update wil. Fixes GDI handle leak (#6229) 2020-06-01 22:29:05 +00:00
Win32K Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00
WinAppDriver Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00