Florian Weber
b0de100978
replace keyword-redefining macros with cleaner ones
...
Redefining keywords is undefined behavior and should therefore not be
presented as something acceptable. Furthermore the code is now easier to
read.
2016-02-12 16:37:55 +01:00
Florian Weber
5e3f735a89
Make Cotnract-macros PREFICXED_ALL_CAPS
...
For backwards-compatability, there are also options to use
the old names, as well as UNPREFIXED_ALL_CAPS, but they
shouldn't be used and this library should preferably comply
with the Guidelines itself
2016-02-12 16:09:52 +01:00
Gary Furnish
62b063a272
Fix issue #242
2016-01-13 16:12:17 +00:00
mcheese
eedd18d5b8
Correct missing rename of bytes() to size_bytes()
2015-12-06 13:43:03 +01:00
Anna Gringauze
e3878a6556
merging with master
2015-12-01 13:41:18 -08:00
Neil MacIntosh
f76f739805
Addressing #178 : wrong return type for function.
2015-11-30 18:20:14 -08:00
Neil MacIntosh
c9959b1071
Corrected some variable naming.
2015-11-30 05:34:38 +00:00
Neil MacIntosh
0cf947db77
Reworked span to match GSL design.
2015-11-29 19:19:37 -08:00
Neil MacIntosh
d5057370b8
Merge branch 'master' into dev/neilmac/contracts
2015-11-20 17:14:21 -08:00
Neil MacIntosh
d13f6daa75
Refactored to use Expects/Ensures everywhere.
2015-11-20 17:06:23 -08:00
Elron A. Yellin
e4d8d35af5
add as_span overload for basic_string which doesn't have nonconst .data() like other contiguous containers
2015-11-20 17:50:02 -05:00
Anna Gringauze
c95eb57d3f
Fixed conversion problem when creating strided_span from span and bounds
2015-11-19 13:13:15 -08:00
Matus Chochlik
73ec688674
Made conversion of span<> to bool explicit
2015-11-19 10:27:08 +01:00
Matus Chochlik
da75d0e757
Added explicit cast to size_type in span constructor
...
This silences implicit sign conversion warnings when constructing span
from containers which return size_t from size().
2015-11-18 17:45:36 +01:00
Neil MacIntosh
106262f1ef
Remove unnecessary workaround for max macro
2015-11-17 19:01:46 -08:00
Neil MacIntosh
107869a2e4
Merge branch 'master' of https://github.com/Microsoft/GSL into dev/neilmac/defines
2015-11-17 15:35:14 -08:00
Neil MacIntosh
292f81e5ef
Tidied up compiler-config macros.
2015-11-17 15:07:51 -08:00
Lukas Haselsteiner
e51eb228ae
fixes pragma undef warnings in MSVC2013
2015-11-15 23:08:35 +01:00
Anna Gringauze
f510025109
Removed basic_span class
2015-11-13 12:54:37 -08:00
Anna Gringauze
8aa4248722
Removing basic_span base class from span
2015-11-13 12:52:02 -08:00
Neil MacIntosh
a998a9b33b
Turned on Level 3 warnings for MSVC.
2015-11-12 18:57:23 -08:00
Neil MacIntosh
42a7030052
Merge pull request #180 from OlafvdSpek/patch-1
...
Sort includes
2015-11-12 15:42:50 -08:00
Olaf van der Spek
550361cf46
Sort includes
2015-11-12 10:23:56 +01:00
Vladislav Yaroslavlev
995cfdf1cb
Add copy assignment operator to BoundsRanges
...
`BoundsRanges` defines copy constructor, but lacks `=` operator
2015-11-12 10:46:21 +03:00
Vladislav Yaroslavlev
557e6693b5
Add copy assignment operator to strided_bounds
...
`strided_bounds` defines copy constructor, but lacks copy assignment
operator
2015-11-12 10:44:41 +03:00
Neil MacIntosh
b63ec949e9
Renaming array_view and string_view, as per WG21 discussions.
2015-11-04 12:42:27 -08:00