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
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
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
Tristan Brindle
3bc3f35214
Fix missing #include <string> in string_span.h
2015-12-23 01:26:38 +13:00
Anna Gringauze
eb05256ffe
Fixed compilation issues in MSVC 2013
2015-12-14 20:43:58 -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
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
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
Anna Gringauze
de6dbacbf6
Addressed CR comments
2015-12-01 14:47:53 -08:00
Anna Gringauze
7077105b9d
Added operator==
2015-12-01 13:41:28 -08:00
Anna Gringauze
8c5d06dc79
fixed GCC and clang compilation issues
2015-12-01 13:41:23 -08:00
Anna Gringauze
e3878a6556
merging with master
2015-12-01 13:41:18 -08:00
Neil MacIntosh
d13f6daa75
Refactored to use Expects/Ensures everywhere.
2015-11-20 17:06:23 -08:00
Neil MacIntosh
292f81e5ef
Tidied up compiler-config macros.
2015-11-17 15:07:51 -08:00
Neil MacIntosh
fc289930ee
Cast size_type for string_span ctor from container.
2015-11-11 20:48:42 -08:00
Rostislav Khlebnikov
31dd90ef31
added missing inlines
2015-11-05 17:56:50 +00:00
Neil MacIntosh
4e4882bda8
Added workaround for MSVC 2013 compiler bug.
2015-11-05 09:29:30 -08:00
Neil MacIntosh
b63ec949e9
Renaming array_view and string_view, as per WG21 discussions.
2015-11-04 12:42:27 -08:00