Commit Graph

4 Commits

Author SHA1 Message Date
Rian Quinn
fb1a89fb14 Fix gsl::at()'s use of size_t
gsl::at should use std::ptrdiff_t instead of size_t. This patch
fixes that, and adds missing unit tests
2016-10-28 11:46:14 -07:00
Rian Quinn
b07383ead1 [gsl_util] Update narrow_cast to use std::forward
* Update narrow_cast to use std::forward

Based on [F19](https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#f19-for-forward-parameters-pass-by-tp-and-only-stdforward-the-parameter), I believe `gsl::narrow_cast` should be implemented using forward semantics.

* Fix for VS 2013
2016-10-18 11:52:45 -07:00
Martin Moene
3aea9f7201 Define constexpr as /*constexpr*/ when unavailable (also noexcept) 2016-08-24 19:53:53 +02:00
Galik
222c2d85fd Removed .h extension from header files. 2016-08-10 17:24:00 +01:00