vjacquet
28ec4ea699
Differentiating exception type for Expects and Ensures
...
Expects throw std::logic_error when Ensures throws std::runtime_error.
Uses multiple inheritance so that the exception thrown is both the
standard and the gsl::fail_fast.
2016-06-26 23:58:13 +02:00
vjacquet
a3fde02d06
Merge remote-tracking branch 'refs/remotes/Microsoft/master'
2016-06-24 18:27:00 +02:00
Neil MacIntosh
0535138459
Merge pull request #289 from ericLemanissier/patch-1
...
gsl::at overload for initializer_list
2016-06-24 05:35:31 -07:00
Neil MacIntosh
b94a220c4a
Corrected typo identified in #288 .
2016-05-13 11:50:25 -07:00
ericLemanissier
9d8866a732
gsl::at overload for initializer_list
...
initializer_list do not have subscript operator, so the generic container overload of gsl::at fails to compile.
This commits adds an overload of gsl::at for initializer_lists, using *(initializer_list::begin()+index) instead of subscript operator
2016-05-09 15:27:17 +02:00
Neil MacIntosh
a9f865900d
Merge pull request #281 from neilmacintosh/master
...
Suppressed CppCoreCheck warnings.
2016-03-31 13:47:18 -07:00
Neil MacIntosh
a9f0ce2f77
Suppressed CppCoreCheck warnings.
2016-03-31 12:01:07 -07:00
Neil MacIntosh
5ae7e71f09
Merge pull request #268 from galik/master
...
Fix: Issue: #267 gsl::fail_fast only defined for one configuration
2016-03-24 17:34:16 -07:00
galik
46662d96d0
Merge remote-tracking branch 'upstream/master'
2016-03-25 00:23:42 +00:00
Neil MacIntosh
511c2da4e0
Merge pull request #276 from sergiyor/dev/sergiyor/submodules
...
Making unittest-cpp a submodule.
2016-03-24 17:06:52 -07:00
Sergiy Oryekhov
38d8a3f82d
Updating travis script.
2016-03-24 16:59:45 -07:00
Sergiy Oryekhov
79030c5586
Moving submodule init before subdirectory.
2016-03-23 16:53:00 -07:00
Sergiy Oryekhov
32d00796ad
Adding unittest-cpp as a submodule.
2016-03-23 16:42:35 -07:00
galik
f02dcc1cc9
Merge remote-tracking branch 'upstream/master'
2016-02-25 19:25:45 +00:00
Neil MacIntosh
ad0905c08b
Merge pull request #262 from chfast/narrow
...
narrow: check for changed sign
2016-02-19 17:19:51 -08:00
Paweł Bylica
c2924406e2
Disable MSVC warning 4127 (conditional expression is constant) raised for so instances of narrow().
2016-02-19 19:14:39 +01:00
Paweł Bylica
abae0bd998
Refactor is_same_signedness.
2016-02-19 19:03:51 +01:00
Paweł Bylica
092a8e53e4
narrow: Check for changed sign only if types have different signess.
2016-02-16 14:37:07 +01:00
galik
1843b1739e
Fix: Issue: #267 gsl::fail_fast only defined for one configuration
2016-02-16 00:57:04 +00:00
Paweł Bylica
6a4f2512b7
narrow: Also check if a value has changed sign after cast.
...
Fixes https://github.com/Microsoft/GSL/issues/222 .
2016-02-08 12:38:06 +01:00
Neil MacIntosh
0be53d99ef
Merge pull request #259 from annagrin/dev/annagrin/legacy_zstring_support
...
Added zstring_span and removed zstring_builder to support legacy strings
2016-02-07 12:11:54 -08:00
Anna Gringauze
45f2bdb486
Fixed compilation issues with gcc and clang
2016-02-06 21:37:17 +00:00
Anna Gringauze
ed906e7aae
Addressed CR comments
2016-02-06 10:46:40 -08:00
Anna Gringauze
b4ff206c24
Added zstring_span and removed zstring_builder to support legacy strings
2016-02-03 19:30:34 -08:00
Neil MacIntosh
6b82ac3d9c
Merge pull request #243 from garyfurnish/master
...
Fix issue #242
2016-01-13 08:44:25 -08:00
Gary Furnish
62b063a272
Fix issue #242
2016-01-13 16:12:17 +00:00
Neil MacIntosh
fc5fce4f4f
Correct define to undef in string_span.h.
2016-01-05 22:04:00 -08:00
Neil MacIntosh
d38e621201
Correct missing return in string_span.h
...
Should fix #239 .
2016-01-04 11:57:03 -08:00
Neil MacIntosh
95776663dc
Merge pull request #233 from tcbrindle/fix-missing-include
...
Fix missing #include <string> in string_span.h
2015-12-29 15:54:38 -08:00
Tristan Brindle
3bc3f35214
Fix missing #include <string> in string_span.h
2015-12-23 01:26:38 +13:00
Neil MacIntosh
85ffc8d222
Merge pull request #230 from annagrin/dev/annagrin/fix_MSVC_2013_compilation_problems
...
Fixed compilation issues in MSVC 2013
2015-12-15 13:03:28 -08:00
Anna Gringauze
eb05256ffe
Fixed compilation issues in MSVC 2013
2015-12-14 20:43:58 -08:00
Neil MacIntosh
c98e1f34a3
Merge pull request #229 from Microsoft/menuet-VS2013-fix-string_span-ctors
...
Merging in two fixes from menuet
2015-12-14 11:51:16 -08:00
Neil MacIntosh
9e1402dff8
Merge fixes from menuet, dropping max() macro workaround.
...
Conflicts:
include/string_span.h
2015-12-14 11:38:20 -08:00
Neil MacIntosh
385780388e
Merge branch 'VS2013-fix-string_span-ctors' of https://github.com/menuet/GSL into menuet-VS2013-fix-string_span-ctors
2015-12-14 11:08:58 -08:00
Pascal Menuet
f38ee4fb5e
In VS2013, the std::equal does not have the overload that takes 4 iterators
2015-12-12 22:59:57 +01:00
Pascal Menuet
5e7e68c8b0
For VS2013, fix an ICE by replacing dummy template type parameter by a dummy function parameter
2015-12-12 22:51:49 +01:00
Pascal Menuet
37cdb6bc50
Disable macro max in Windows. Implement move ctors in string_span for VS2013. Remove redundant pragma warning pop for VS2013.
2015-12-11 20:47:07 +01:00
Neil MacIntosh
de62e7b0ae
Merge pull request #224 from ZachHenkel/master
...
Add casts to eliminate signed/unsigned mismatch warnings
2015-12-09 14:18:59 -08:00
Zachary Henkel
293acf0640
Add casts to eliminate signed/unsigned mismatch warnings
...
Addresses issue #210 and VC's warning C4365
2015-12-09 13:59:32 -08:00
Zachary Henkel
004f0aba3b
Merge pull request #2 from Microsoft/master
...
Update from Microsoft/GSL
2015-12-09 13:05:01 -08:00
Neil MacIntosh
eb28b21049
Merge pull request #221 from mcheese/master
...
Correct missing rename of bytes() to size_bytes()
2015-12-08 12:02:14 -08:00
Neil MacIntosh
f569813c18
Merge pull request #223 from annagrin/dev/annagrin/string_span_operator_fixes
...
string span operator fixes
2015-12-08 12:01:23 -08:00
Anna Gringauze
5926942cd7
Tyding up comments
2015-12-07 15:30:00 -08:00
Anna Gringauze
e19f6b5f36
Fixed a bug on creating a span from empty string
2015-12-07 15:22:11 -08:00
Anna Gringauze
c6f3579ad1
Changes for gcc and clang
2015-12-07 00:14:31 -08:00
Anna Gringauze
87c5daa6c4
Fixed operators and constructors for string_span
2015-12-07 00:14:25 -08:00
mcheese
eedd18d5b8
Correct missing rename of bytes() to size_bytes()
2015-12-06 13:43:03 +01:00
Neil MacIntosh
ace63c5a9d
Merge pull request #218 from annagrin/dev/annagrin/string_span_fixes
...
Dev/annagrin/string span fixes
2015-12-02 13:26:15 -08:00
Anna Gringauze
4efa9e8f07
Run clang format
2015-12-02 12:43:45 -08:00