Commit Graph

201 Commits

Author SHA1 Message Date
0cf947db77 Reworked span to match GSL design. 2015-11-29 19:19:37 -08:00
38eaf9fc95 Refactored headers so span can use narrow_cast etc. 2015-11-23 16:22:31 -08:00
d5057370b8 Merge branch 'master' into dev/neilmac/contracts 2015-11-20 17:14:21 -08:00
d13f6daa75 Refactored to use Expects/Ensures everywhere. 2015-11-20 17:06:23 -08:00
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
c95eb57d3f Fixed conversion problem when creating strided_span from span and bounds 2015-11-19 13:13:15 -08:00
73ec688674 Made conversion of span<> to bool explicit 2015-11-19 10:27:08 +01:00
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
106262f1ef Remove unnecessary workaround for max macro 2015-11-17 19:01:46 -08:00
107869a2e4 Merge branch 'master' of https://github.com/Microsoft/GSL into dev/neilmac/defines 2015-11-17 15:35:14 -08:00
292f81e5ef Tidied up compiler-config macros. 2015-11-17 15:07:51 -08:00
e51eb228ae fixes pragma undef warnings in MSVC2013 2015-11-15 23:08:35 +01:00
f510025109 Removed basic_span class 2015-11-13 12:54:37 -08:00
8aa4248722 Removing basic_span base class from span 2015-11-13 12:52:02 -08:00
a998a9b33b Turned on Level 3 warnings for MSVC. 2015-11-12 18:57:23 -08:00
42a7030052 Merge pull request from OlafvdSpek/patch-1
Sort includes
2015-11-12 15:42:50 -08:00
550361cf46 Sort includes 2015-11-12 10:23:56 +01:00
a29ed61a48 Merge remote-tracking branch 'refs/remotes/Microsoft/master' 2015-11-12 10:47:49 +03:00
995cfdf1cb Add copy assignment operator to BoundsRanges
`BoundsRanges` defines copy constructor, but lacks `=` operator
2015-11-12 10:46:21 +03:00
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
fc289930ee Cast size_type for string_span ctor from container. 2015-11-11 20:48:42 -08:00
31dd90ef31 added missing inlines 2015-11-05 17:56:50 +00:00
4e4882bda8 Added workaround for MSVC 2013 compiler bug. 2015-11-05 09:29:30 -08:00
b63ec949e9 Renaming array_view and string_view, as per WG21 discussions. 2015-11-04 12:42:27 -08:00
68064d63fe Converted all tabs to spaces in array_view.h. 2015-11-03 19:17:11 -08:00
e9a9602b4f Fixed compile issues for MSVC 2013. 2015-11-03 18:56:55 -08:00
41517ff316 Cleaned up size_t use for ranks. Compilation fixes for non-MSVC compilers. 2015-11-04 02:11:49 +00:00
14d50a6f77 Minor compilation fixes and workarounds. 2015-11-03 12:44:09 -08:00
16d1e77568 Merge remote-tracking branch 'origin' into dev/neilmac/indextype 2015-11-02 19:01:59 -08:00
ba3126105b Merge pull request from archshift/patch-1
array_view: explicitly initialize constexpr function variables
2015-11-02 11:53:08 -08:00
b39571781e array_view: explicitly initialize constexpr function variables 2015-11-02 11:47:14 -08:00
a4fa2b3bd9 Merge branch 'master' of https://github.com/Microsoft/GSL
Conflicts:
	include/array_view.h
	tests/array_view_tests.cpp
2015-10-28 16:53:53 -07:00
0cbdc7036d Fixed string_view::ensure_z() for const char*. 2015-10-26 18:23:14 -07:00
ace9ab9d3b Building again. Some tests failing. 2015-10-23 19:49:17 -07:00
561da1cd00 fix clang warning on unused function parameter 2015-10-21 13:31:00 +03:00
1c208b33d0 Removed specializations for Rank=1 2015-10-19 14:19:46 -07:00
1e36db9695 Merge pull request from samuel3/master
std::hash support for gsl::not_null.
2015-10-19 13:20:53 -07:00
5f26ddac70 Replaced index constructor from initializer list by a constructor from static list
Conflicts:
	include/array_view.h
2015-10-19 12:35:38 -07:00
8e2acc9c90 std::hash support for gsl::not_null. 2015-10-17 09:28:05 +02:00
a544ada8fe std::hash support for gsl::not_null. 2015-10-17 08:53:58 +02:00
a4654a46b5 Removed arrow_proxy class, fixes bugs in reverse bounds_iterator 2015-10-16 17:15:56 -07:00
01868f2516 Fix missing header for std::divides. 2015-10-15 16:48:38 -07:00
d0f09e768e Merge branch 'master' of https://github.com/Microsoft/GSL
Conflicts:
	include/array_view.h
2015-10-15 16:38:53 -07:00
f45fedbec2 Partway through removing configurable SizeType. 2015-10-15 14:29:35 -07:00
2cdedda7e4 Adding missing include library to array_view.h 2015-10-15 13:19:24 -07:00
fdf8643471 Fixes for gcc 2015-10-14 21:27:41 -07:00
546f8cc130 Added tests for index size_type conversions 2015-10-12 18:35:21 -07:00
db38497d05 Removed coordinate_facade class 2015-10-12 16:52:11 -07:00
fda8e12310 Fix remove maybe_null 2015-10-05 13:34:50 -07:00
b8ec73a179 Fix moving a final_act twice 2015-10-02 15:58:23 -07:00