Replace gsl::span’s implementation with tcbrindle’s

This implementation optimises correctly on all relevant compilers,
unlike GSL’s which gave extremely slow code on any compiler other than
MSVC.

Supersedes #6948.
This commit is contained in:
Emmanuel Gil Peyrot 2019-11-09 15:45:32 +01:00
parent 25144caf12
commit 72cdf0b04c
7 changed files with 16 additions and 18 deletions

View file

@ -1,10 +0,0 @@
#pragma once
#define GSL_THROW_ON_CONTRACT_VIOLATION
#pragma push_macro("new")
#undef new
#include <gsl/gsl>
#pragma pop_macro("new")
#undef Expects
#undef Ensures