Jordan Maples
afa2f3fd9a
fully qualify ptrdiff_t in multi_span and remove it from gsl\gsl
2020-04-21 16:14:58 -07:00
Werner Henze
fb1243d735
suppress code analysis warning
...
- suppress " warning C26481: Don't use pointer arithmetic. Use span instead (bounds.1)."
- Please note that the suppression in `end()` does not work with MSVC 16.5.4.
2020-04-19 16:41:12 +02:00
Jordan Maples
9cb376c050
adding back free functions for [c|cr][begin|end]
2020-04-14 16:57:12 -07:00
Jordan Maples
7341c5d1b5
implement LWG3320 by deleting const_iterator and const_reverse_iterator
2020-04-14 13:51:49 -07:00
Jordan Maples [MSFT]
044849d6fa
Merge pull request #823 from RedDwarf69/std_byte_fix
...
Add missing #include if built with GSL_USE_STD_BYTE=1
2020-04-13 11:33:56 -07:00
Jordan Maples
f85166aa8b
Merge branch 'master' into dev/jomaples/LWG3255
2020-04-09 09:53:45 -07:00
Farwaykorse
6e2398b524
Solve MSVC warning C4668: __GNUC__ & __clang__ not defined as a preprocessor macro
...
MSVC compiler warning C4668:
` '__clang__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'`
2020-04-09 03:15:57 +02:00
Pavel P
830b081de7
Fix debugger visualizer for Ext=gsl::dynamic_extent
...
VS 2019 doesn't seem to match -1 for size_t template parameter, as a result dynamic span/basic_string_span/basic_zstring_span show extent as `extent = 4294967295` (for 32-bit builds). This change updates details::extent_type to have static constexpr size_ parameter for non-dynamic span/basic_string_span/basic_zstring_span and simplifies/removes dynamic versions from GSL.natvis
fixes #856
2020-03-28 01:59:04 +06:00
Jordan Maples
f8bcb7d9eb
applied clang-format
2020-03-17 15:04:58 -07:00
Jordan Maples
9b3ac8d681
discussed the issue with Casey Carter, the span ctor changes are accurate but the tests are not. The test require work that was done in C++17 regarding qualifier conversions to work correctly. Scoping tests for 17.
2020-03-17 15:02:00 -07:00
Jordan Maples
1dd1320c8b
test commit to get extra eyes on the problem
2020-03-17 13:53:13 -07:00
Jordan Maples
06adf557e9
update kernel mode detection macro
2020-03-12 12:32:32 -07:00
Jordan Maples
ce4d689f4f
shuffle around code to bring includes to top.
2020-03-06 11:22:09 -08:00
Jordan Maples
b30524088a
added some comments and ran clang-format
2020-03-06 11:17:58 -08:00
Jordan Maples
769f01900d
moving exception include
2020-03-03 17:04:46 -08:00
Jordan Maples [MSFT]
4a6a7a095d
add back array header, will remove in separate pr
2020-02-25 14:09:29 -08:00
Jordan Maples [MSFT]
fc54e0d89a
just pulling in array header if we detect apple clang
2020-02-25 13:39:47 -08:00
Jordan Maples [MSFT]
32e5fea6ac
test
2020-02-24 14:47:45 -08:00
Jordan Maples [MSFT]
0f60c68ab9
disgusting test to get apple clang to work, dont look at it
2020-02-24 14:41:29 -08:00
Jordan Maples [MSFT]
60372b6468
apple-clang failed again, forcing class instead of struct
2020-02-24 13:43:42 -08:00
Jordan Maples [MSFT]
89271b89c1
fix apple clang forward declaration
2020-02-24 13:06:01 -08:00
Jordan Maples [MSFT]
ac37004274
clang defines struct as array where msvc and g++ define it as class.
2020-02-24 11:45:33 -08:00
Jordan Maples [MSFT]
3144082909
forward declare span and remove header
2020-02-24 11:16:26 -08:00
Jordan Maples [MSFT]
94f43d4adf
splitting up span's standard and non-standard behavior
2020-02-19 14:28:12 -08:00
Jordan Maples [MSFT]
46603698ec
rewrite operators in iterator to take advantage of nrvo
2020-02-18 15:36:15 -08:00
Jordan Maples [MSFT]
f4c608fd39
addressing comments
2020-02-18 14:09:11 -08:00
Jordan Maples [MSFT]
41ae38f197
addressing a few more comments and adding gsl-std span compatibility tests
2020-02-14 15:24:46 -08:00
Jordan Maples [MSFT]
926aaeca56
reviewed the pr in its entirety and made some slight modifications. Removed all members and fields marked as deprecated.
2020-02-11 16:36:07 -08:00
Jordan Maples [MSFT]
cce6ee563e
address issue with v140 toolset
2020-02-10 17:09:58 -08:00
Jordan Maples [MSFT]
dd78144c2e
msvc and gcc work locally
2020-02-10 13:17:22 -08:00
Jordan Maples [MSFT]
d8fa68c4a5
address build failures
2020-02-07 14:40:09 -08:00
Jordan Maples [MSFT]
b81d6e40e1
constexpr the make_subspan calls.
2020-02-07 14:15:44 -08:00
Jordan Maples [MSFT]
377b2db537
almost parity with std::span
2020-02-07 14:09:57 -08:00
Jordan Maples [MSFT]
a49ff1b8df
update span specialization of at, change some tests back to int i with narrowing for the comparisons.
2020-02-05 17:12:31 -08:00
Jordan Maples [MSFT]
3b9d15f49f
reverting changes to gsl::index
2020-02-05 17:02:23 -08:00
Jordan Maples [MSFT]
ff5f7973a2
remove brackets around this deref for span_iterator operators
2020-02-05 14:36:34 -08:00
Jordan Maples [MSFT]
7fcc142ffc
addressing travis errors
2020-02-05 14:32:08 -08:00
Jordan Maples [MSFT]
5cf1610cfe
prevent overflow in size_bytes. fix compilation issue for clang 3.6 and 3.7
2020-02-05 12:58:49 -08:00
Jordan Maples [MSFT]
d7e1611137
gsl::index ptrdiff_t -> size_t. remove span::at span::operator().
2020-02-04 16:53:43 -08:00
Jordan Maples [MSFT]
5a1e4f3953
update index_type to size_type, fix a couple Expects
2020-02-04 15:31:33 -08:00
Jordan Maples [MSFT]
61c6ef8d42
remove index_type from string_span, update comments
2020-02-04 13:30:03 -08:00
Jordan Maples [MSFT]
db2134485a
Merge branch 'dev/jomaples/unsigned' of https://github.com/jordanmaples/gsl into dev/jomaples/unsigned
2020-02-04 12:01:30 -08:00
Jordan Maples [MSFT]
0c6ce424ab
refactoring index_type to size_type, changing expects
2020-02-04 12:01:27 -08:00
Jordan Maples [MSFT]
e9fea77bcb
Update include/gsl/span
...
Co-Authored-By: Casey Carter <cartec69@gmail.com>
2020-02-03 18:31:50 -08:00
Jordan Maples [MSFT]
4ec7058b56
Update include/gsl/span
...
Co-Authored-By: Casey Carter <cartec69@gmail.com>
2020-02-03 18:31:21 -08:00
Jordan Maples [MSFT]
49e7ed1ebf
updating comparisons
2020-02-03 18:27:09 -08:00
Jordan Maples [MSFT]
592c28c6d1
fixing spaces in gsl_suppress
2020-02-03 18:18:14 -08:00
Jordan Maples [MSFT]
877816faa4
addressing feedback
2020-02-03 18:16:41 -08:00
Jordan Maples [MSFT]
2b7a8f1f2f
Merge branch 'dev/jomaples/unsigned' of https://github.com/jordanmaples/gsl into dev/jomaples/unsigned
2020-02-03 18:14:52 -08:00
Jordan Maples [MSFT]
e0dc8095b3
addressing feedback
2020-02-03 18:13:14 -08:00
Jordan Maples [MSFT]
81c2a1da15
addressing feedback
2020-02-03 18:12:57 -08:00
Jordan Maples [MSFT]
827fafd32c
Update include/gsl/span
...
Co-Authored-By: Casey Carter <cartec69@gmail.com>
2020-02-03 18:12:32 -08:00
Jordan Maples [MSFT]
24646c6f7c
Update include/gsl/span
...
Co-Authored-By: Casey Carter <cartec69@gmail.com>
2020-02-03 17:51:45 -08:00
Jordan Maples [MSFT]
f4ee6ee73b
Update include/gsl/span
...
Co-Authored-By: Casey Carter <cartec69@gmail.com>
2020-02-03 17:51:25 -08:00
Jordan Maples [MSFT]
1815791af8
Change iterator from Span* & ptrdiff_t to pointer, pointer, pointer
2020-02-03 16:26:36 -08:00
Jordan Maples [MSFT]
d9d6ea8196
remove comparison to dynamic_extent
2020-02-03 13:53:38 -08:00
Jordan Maples [MSFT]
3e40b3fa4b
Merge branch 'dev/jomaples/unsigned' of https://github.com/jordanmaples/gsl into dev/jomaples/unsigned
2020-02-03 13:52:11 -08:00
Jordan Maples [MSFT]
d0fdbdbffa
fixing suppress spacing
2020-02-03 13:52:00 -08:00
Jordan Maples [MSFT]
a430823b43
Update include/gsl/string_span
...
Co-Authored-By: Casey Carter <cartec69@gmail.com>
2020-02-03 13:47:34 -08:00
Jordan Maples [MSFT]
9bb900e834
Update include/gsl/span
...
Co-Authored-By: Casey Carter <cartec69@gmail.com>
2020-02-03 13:46:18 -08:00
Jordan Maples [MSFT]
17e372c155
Update include/gsl/span
...
Co-Authored-By: Casey Carter <cartec69@gmail.com>
2020-02-03 13:45:56 -08:00
Jordan Maples [MSFT]
5b8cf5422b
casting -1 for dynamic extent
2020-02-03 12:49:57 -08:00
Jordan Maples [MSFT]
eabd9358f0
addressing some comments
2020-02-03 12:46:37 -08:00
Jordan Maples [MSFT]
ad71477183
fix build breaks
2020-02-03 12:26:15 -08:00
Jordan Maples [MSFT]
8579165d0a
change span from signed to unsigned to align to std
2020-02-03 10:56:31 -08:00
Jordan Maples [MSFT]
6b23937baf
remove move constructor for not_null.
2020-01-30 17:00:13 -08:00
Kunal Tyagi
26a68c882b
Correct spelling error in docs
2020-01-17 14:32:37 +09:00
Jordan Maples [MSFT]
395a5bf550
Merge branch 'master' into dev/jomaples/add_missing_span_functions
2020-01-10 10:20:37 -08:00
Jordan Maples [MSFT]
a1e6fcbc46
Merge branch 'master' into dev/jomaples/deprecate_span_non_std_functions
2020-01-09 16:39:24 -08:00
Jordan Maples [MSFT]
2d878b94ee
Merge branch 'master' into dev/jomaples/add_missing_span_functions
2020-01-09 16:37:12 -08:00
Jordan Maples [MSFT]
cfd82aef4e
deprecating span::at and span::operator()
2020-01-09 12:51:28 -08:00
Jordan Maples [MSFT]
3c0b38b777
Merge pull request #833 from JordanMaples/dev/jomaples/noexceptspan
...
Update noexcept in span and span_iterator
2020-01-09 12:45:17 -08:00
Jordan Maples [MSFT]
c7f9b3301a
noexcepting new functions
2020-01-09 12:13:12 -08:00
Jordan Maples [MSFT]
4b823b1651
adding front and back
2020-01-09 12:03:27 -08:00
Jordan Maples [MSFT]
3bf4106a44
noexcept all of the span iterator stuff
2020-01-08 12:34:11 -08:00
Martijn Otto
b186b6cc68
Implement free-standing (c|r|cr)(begin|end) and ssize functions
2020-01-08 21:01:52 +01:00
Jordan Maples [MSFT]
b33bd4aebe
updating all span functions to be noexcept
2020-01-08 11:51:15 -08:00
Jordan Maples [MSFT]
17ad4495fb
deprecate gsl::details::throw_exception. remove unused header in gsl_assert. gsl_util to use terminate instead of throw_exception
2019-12-13 13:40:25 -08:00
Jordan Maples [MSFT]
2b10729386
gtest migration
2019-12-03 14:32:25 -08:00
Jordan Maples [MSFT]
7e99e76c97
Merge pull request #826 from JordanMaples/dev/jomaples/ctad_fix_v2
...
fix ctad warning in llvm
2019-11-18 13:02:53 -08:00
Jordan Maples [MSFT]
263440f2a1
changing white-space in comment to get tests to rerun
2019-11-18 11:39:36 -08:00
Jordan Maples [MSFT]
a7759e6d3f
lower __cpp_deduction_guide version number from 201907 to 201611
2019-11-18 10:14:05 -08:00
Jordan Maples [MSFT]
128b4356ac
changing check from __cplusplus 201703L to __cpp_deduction_guides 201907L
2019-11-15 16:29:41 -08:00
Jordan Maples [MSFT]
8e481ebe19
adding deduction guide for strict_not_null
2019-11-15 14:41:38 -08:00
Jordan Maples [MSFT]
4610f26b33
forgot comment
2019-11-15 12:43:33 -08:00
Jordan Maples [MSFT]
d0e5daf441
fix ctad warning in llvm
2019-11-15 12:11:44 -08:00
Cristian Morales Vega
b213c89700
Add missing #include if built with GSL_USE_STD_BYTE=1
...
cstddef was being included to detect whether GSL_USE_STD_BYTE should be
set to 0 or 1. But if the user provided GSL_USE_STD_BYTE no detection is
required and the header was never included.
2019-11-08 16:37:23 +00:00
Jordan Maples
22cba52114
update comments
2019-10-25 10:12:41 -07:00
Jordan Maples
97dc8f83fc
adding check to __cpp_lib_byte, which was added to the defn for 15.8
2019-10-24 17:07:42 -07:00
Jordan Maples [MSFT]
3d56ba9e7f
Merge pull request #813 from JordanMaples/dev/jomaples/deprecate_multispan
...
Deprecate multi_span, strided_span, etc
2019-10-09 15:11:59 -07:00
Matthias Moulin
0a78d8ea3c
Added std::exchange (C++14) to make the intent more explicit
2019-10-07 21:49:50 +02:00
Sergei Izmailov
275e0176c0
Fix typos in gsl/pointers
2019-10-06 19:20:15 +03:00
Jordan Maples
2b8f7aea32
adding clang/gcc suppression of the deprecation warnings.
2019-10-04 12:38:55 -07:00
Jordan Maples
7adf7eb6fe
new messages
2019-10-03 17:52:49 -07:00
Jordan Maples
5e4463a7c1
removing function deprecation, adding additional class / struct deprecations
2019-10-03 15:47:25 -07:00
Jordan Maples
eb995b3671
deprecating strided_span
2019-10-02 16:17:46 -07:00
Jordan Maples
e026971c03
deprecation, removing cassert
2019-10-02 15:40:15 -07:00
Jordan Maples
bbeb0bdc91
initial deprecation of multi_span and strided_span
2019-09-28 12:54:18 -07:00
Jordan Maples [MSFT]
b576cc6ce3
Merge pull request #769 from jack17529/patch-1
...
Update usage of difference_type in span
2019-08-15 14:49:12 -07:00
Jordan Maples [MSFT]
2ce3177ebd
Merge pull request #800 from eyalroz/master
...
Fixes #798 : Dropping inclusion of `gsl/pointers` in `string_span`
2019-08-15 14:42:07 -07:00