Commit Graph

589 Commits

Author SHA1 Message Date
Neil MacIntosh
bc70a93bba Removed unnecessary reinterpret_cast<> from span implementation. 2016-09-12 19:06:45 -07:00
Neil MacIntosh
3b2419532e Corrected SFINAE for conversion constructors on span. 2016-09-12 18:51:23 -07: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
d23f4d931c Fix #350 typo in operator | for gsl::byte. 2016-09-06 18:50:32 -07:00
Neil MacIntosh
9e0807f1b1 Fix typo in operator | for gsl::byte. 2016-09-06 18:45:53 -07:00
Neil MacIntosh
a360b81805 Fix #247: add to_basic_string().
Add to_basic_string
2016-09-04 14:12:40 -07:00
Gary Furnish
ec109d2374 Add to_basic_string 2016-09-04 00:29:10 -06: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
Neil MacIntosh
f8ef4e2355 Fix #340: define constexpr as /*constexpr*/ when unavailable (also noexcept) 2016-08-27 10:51:00 -07:00
Neil MacIntosh
5e2618b034 Specialize gsl::at for span 2016-08-25 08:35:52 -07:00
Martin Moene
3aea9f7201 Define constexpr as /*constexpr*/ when unavailable (also noexcept) 2016-08-24 19:53:53 +02:00
Neil MacIntosh
deda5e6c46 Fix #332: update CMakeLists.txt to install all headers 2016-08-24 10:13:02 -07:00
Neil MacIntosh
a8c5004b70 Update CMakeLists.txt 2016-08-24 10:01:42 -07:00
ericLemanissier
134f2db5d9 Specialize gsl::at for span
span being a view and not a container, the generic version of gsl::at is not valid any more for span.
This commits adds a specialization of gsl::at for span
2016-08-23 12:18:36 +02:00
Neil MacIntosh
5112ba02f6 Fix issue #315: Provide platform support for strnlen 2016-08-19 09:26:49 -07:00
Rian Quinn
aadcce275e Fix issue: Provide platform support for strnlen
Not all platforms have support for strnlen (e.g. cygwin) as this is a non-standard function. This patch provides a custom implementation of strnlen for these platforms.
2016-08-18 20:32:08 -06:00
Neil MacIntosh
93b3258e36 Fix #323 - Badly positioned noexcept 2016-08-15 11:25:43 -07:00
Neil MacIntosh
90f47cca12 Fix inconsistent naming 2016-08-15 11:22:45 -07:00
EFanZh
2d4b552c82 Fix inconsistent naming 2016-08-14 13:20:32 +08:00
Vincent Isambart
36d56ebcb3 Add missing newline at end of file 2016-08-13 10:16:59 +09:00
Vincent Isambart
582ae8c87f Fix #323 - Badly positioned noexcept 2016-08-13 10:15:59 +09:00
Neil MacIntosh
f3e660a5a5 Added basic test for interop with std::regex as per Issue #271. 2016-08-10 19:39:48 -07:00
Neil MacIntosh
d6ac640271 Added basic test for interop with std::regex as per Issue #271. 2016-08-10 19:32:00 -07:00
Neil MacIntosh
85b5c3770c Support iterator conversions as per Issue #252 2016-08-10 19:25:31 -07:00
Neil MacIntosh
6b4ae834a3 Merge branch 'master' into dev/neilmac/iterators 2016-08-10 19:00:43 -07:00
Neil MacIntosh
cb6996cd97 PR #319 Removed .h extension from header files. 2016-08-10 10:25:09 -07:00
Galik
222c2d85fd Removed .h extension from header files. 2016-08-10 17:24:00 +01:00
Neil MacIntosh
f5dda0fb20 Added some tests to ensure Issue #305 doesn't recur. 2016-08-09 18:37:25 -07:00
Neil MacIntosh
5ebfc16f14 Merge branch 'master' into dev/neilmac/spans_in_maps 2016-08-09 18:14:11 -07:00
Neil MacIntosh
f9f08a56fa Added test for Issue #305. 2016-08-09 18:07:17 -07:00
Neil MacIntosh
92fdde2919 PR #317 renaming include/ folder to gsl/ to address issue #277 2016-08-09 17:54:55 -07:00
galik
f6cc5798a1 Renamed include/ folder to gsl/ to make including the library consistent
whether using it from the development folder, from the installation
folder or from being copied into a project. 

    #include <gsl/gsl.h>

Updated headers/tests/instructions/cmake build accordingly

This PR should address https://github.com/Microsoft/GSL/issues/277 (less
the renaming of gsl itself)
2016-08-09 15:04:58 +01:00
Neil MacIntosh
efeb557bf1 Merge pull request #310 from neilmacintosh/dev/neilmac/fix_mismatched_pragma
Fixed #308 - a mismatched pragma.
2016-08-08 13:52:15 -07:00
Neil MacIntosh
32ee66d320 Added basic tests for std::begin/end and friends (Issue #252). 2016-08-08 13:48:12 -07:00
Neil MacIntosh
0dd5f56bed Fixed unused variable and ran clang-format. Tested on gcc/clang. 2016-08-08 13:33:02 -07:00
Neil MacIntosh
82389aa630 Fixed up iterator implementation to allow conversion from iterator to
const_iterator.
2016-08-08 12:06:47 -07:00
Neil MacIntosh
9ab3a2ac39 Merge pull request #311
Implemented #260.
2016-08-03 15:30:30 -07:00
Som1Lse
c4817358aa Implemented https://github.com/Microsoft/GSL/issues/260 2016-08-03 22:28:25 +02:00
Neil MacIntosh
4235b060fd Merge pull request #207 from jasonhorsburgh/cmake_install
Add CMake install target for header files
2016-08-03 10:37:10 -07:00
Neil MacIntosh
db9d3da029 Merge branch 'master' of https://github.com/neilmacintosh/GSL into dev/neilmac/fix_mismatched_pragma 2016-08-02 18:10:07 -07:00
Neil MacIntosh
ebce4920d6 Fixed #308 - a mismatched pragma. 2016-08-02 16:22:18 -07:00
Neil MacIntosh
7272552bf9 Updating span<T> to reflect standardization. (PR #309)
Updating span<T> to reflect standardization.
2016-08-02 15:14:11 -07:00
Neil MacIntosh
3836e124d8 Added code of conduct statement to README. 2016-08-02 14:59:57 -07:00
Neil MacIntosh
6c7be2c8ee clang-format run. 2016-08-01 21:41:20 -07:00
Neil MacIntosh
94afa1fbd7 Removed unnecessary inheritance between iterators. 2016-08-01 18:49:48 -07:00
Neil MacIntosh
1bd2d04c2e Another round of clang-formatting. 2016-08-01 13:10:02 -07:00
Neil MacIntosh
8e31f53f8a Building clean with MSVC12. 2016-07-29 11:16:06 -07:00
Neil MacIntosh
a0cf1ecc49 Renamed as_span() to as_multi_span() for clarity. 2016-07-28 17:27:22 -07:00