Commit Graph

14 Commits

Author SHA1 Message Date
Tobias Hunger
f93d325495 Fix gsl_byte to include type_traits
type_traits are needed for the call to std::is_same.
2017-01-23 17:07:12 -08:00
Michael Balszun
4e7997190c Turn off warning about function-styl casts in gsl_byte 2016-09-21 21:39:28 +02:00
Martin Moene
6cf154e067 Fix to_integer() 2016-09-17 09:24:34 +02:00
Neil MacIntosh
edceed8075 Adding inline to all byte-related functions for MSVC 2013. 2016-09-13 14:30:02 -07:00
Neil MacIntosh
e40729a561 Added inline to byte member functions to fix MSVC 2013 warnings 2016-09-13 12:17:17 -07:00
Steve Brain
ad5275ca78 Added inline to fix compilation warnings on msvc 2013 2016-09-13 16:07:34 +10:00
Kris
d5847ceef0 Merge remote-tracking branch 'Microsoft/master' 2016-09-07 22:16:19 +01:00
Kris
7d083fd08c Issue #329, fixed build issues on clang
Fixed build issues that clang shows up the MS VS accepts.
2016-09-07 22:16:10 +01:00
Kris Cruickshank
55b232dde4 Issue: #329
This is my best attempt at fixing the issues raised by @gdr-at-ms while supporting VS2013, VS2015, providing shorter syntax than the static_cast and giving developer meaningful errors when they do the wrong thing.
2016-09-07 21:38:43 +01:00
Neil MacIntosh
9e0807f1b1 Fix typo in operator | for gsl::byte. 2016-09-06 18:45:53 -07:00
Kris
95bbaa1ec2 Added to_byte method for issue #329
I have added the to_byte method and updated the unit tests.

This gives slightly nicer syntax than static_cast, is better than the
c-style cast used in the unit test.

See: https://github.com/Microsoft/GSL/issues/329#issuecomment-240588515
2016-08-28 21:55:58 +01:00
Martin Moene
3aea9f7201 Define constexpr as /*constexpr*/ when unavailable (also noexcept) 2016-08-24 19:53:53 +02:00
Vincent Isambart
36d56ebcb3 Add missing newline at end of file 2016-08-13 10:16:59 +09:00
Galik
222c2d85fd Removed .h extension from header files. 2016-08-10 17:24:00 +01:00