Граф коммитов

394 Коммитов

Автор SHA1 Сообщение Дата
Daniel Marshall 3a279357e0
P1682R3 to_underlying() For Enumerations (#1828)
Co-authored-by: Casey Carter <cartec69@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-06-29 03:26:30 -07:00
Casey Carter 7ed04d977e
<format>: Simplify type-erased argument storage (#1907)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-06-29 03:22:12 -07:00
Charles Milette 64aa67e239
<format>: Optimize container insertion (#1894)
Co-authored-by: Casey Carter <cacarter@microsoft.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-06-29 03:15:55 -07:00
statementreply ac661bf1cd
<chrono>: Adjust for leap seconds when formatting file_time (#1879) 2021-06-29 03:08:08 -07:00
statementreply 678048133b
<random>: Fix mersenne_twister_engine special case behavior (#1631) 2021-06-29 02:33:00 -07:00
Sibi Siddharthan 5735fa1823
Fix filesystem::remove to remove readonly files also (#1559)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-06-29 02:27:42 -07:00
Wim Leflere 2682721795
P1679R3 contains() For basic_string/basic_string_view (#1478)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-06-29 02:22:13 -07:00
Casey Carter a4983af087
P2325R3 Views Should Not Be Required To Be Default Constructible (#2012)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-06-29 02:15:02 -07:00
Michael Schellenberger Costa 96f4b66105
Fix missing `_CONSTEXPR20_CONTAINER` on `_Alloc_temporary` (#1962) 2021-06-11 20:18:56 -07:00
Michael Schellenberger Costa 312047cf3e
<ranges>: Relax constraints on views::drop and views::take range adaptors (#1958)
Co-authored-by: Casey Carter <cacarter@microsoft.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-06-11 20:13:07 -07:00
Daniel Marshall 1ece8a0352
`<type_traits>`: Implement `is_scoped_enum` (#1950)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-06-11 19:46:36 -07:00
Adam Bucior e326ec1dd9
Optimizations for unreachable sentinels (#1810)
Co-authored-by: Casey Carter <cartec69@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-06-11 19:35:51 -07:00
Michael Schellenberger Costa 264765b3c3
Specialize find and count for vector<bool> (#1131)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2021-06-11 19:30:53 -07:00
Stephan T. Lavavej 1219eb3936
Toolset update: VS 2019 16.11 Preview 1 (#1953) 2021-06-11 19:24:24 -07:00
Casey Carter 4c862ee11c
<algorithm>: fix GH-1932 (#1933)
* <algorithm>: fix GH-1932

... by extracting the constant expression we'd like to short-circuit into a concept.

Fixes #1932.
2021-06-04 09:56:26 -07:00
Billy O'Neal 8a8e7cb719
Static partition forward ranges correctly (#1753)
* Static partition forward ranges correctly.

In DevCom-1326903 the user reports that forward ranges, specifically `std::map` in their case, produce incorrect results from `std::equal`. After reducing to `forward_list` and debugging through, the problem is that when processing "unchunked items" we aren't giving those initial chunks their extra item, so the `std::equal` call fails fast whenever there are unchunked items.

Testing before didn't catch this because the values I chose of being around the thread count didn't account for the underlying infrastructure using `_Oversubscription_multiplier` which meant that the partitioning edge cases were not exercised (in most cases the parallel algorithms tests were testing only 1 element per chunk).

`<execution>` Add the missing `+1`. Note that this `+1` is the same `+1` in the random-access version on line 907.

`tests/std/include/parallel_algorithms_utilities.hpp`: Adjust the N constants to account for `_Oversubscription_multiplier`.

* Add `quadradic_complexity_case_limit` to prevent test cases from taking too long.

* Fix typos.

* `break` instead of `return`.

* Fix off-by-one error in handling of `remainingAttempts`.
2021-06-04 09:43:31 -07:00
Casey Carter 3cafa97eec
Implement the ABI plan from GH-1814 (#1929)
* Implement the ABI plan from GH-1814

* Condition `<format>` and "`<chronat>`" on `__cpp_lib_format` instead of `__cpp_lib_concepts`.
* Condition the `view` concept - and everything that relies on it, including all of `<ranges>` - on `__cpp_lib_ranges` in addition to `__cpp_lib_concepts`.
* Add C++23 STL and testing infrastructure:
  * Define `_HAS_CXX23` in `<yvals_core.h>`. We'll eventually want this to move into `<vcruntime.h>` so all `_HAS_CXXMEOW` definitions are nicely localized.
  * `_HAS_CXX23` is defined to `1` iff `_HAS_CXX20 != 0` and `_MSVC_LANG` (if defined) or `__cplusplus` (otherwise) is greater than C++20's value of `202002L`. For Clang coverage, we'll have to manually define `_HAS_CXX23` to `1` until Clang updates their `__cplusplus` value for `/std:c++latest`.
  * Rename `meow_concepts_woof.lst` to `meow_concepts_latest_woof.lst`.
  * Update test matrices: Copy all `meow_latest_woof.lst` matrices to `meow_20_woof.lst`. Add `/std:c++20` coverage to the latter (still spelled `/std:c++latest` for Clang which doesn't grok `/std:c++20`) by duplicating the C++17 configs. `/std:c++latest` becomes C++23 mode (with additions of `/D_HAS_CXX23` for Clang).
  * Replace uses of `meow_latest_woof.lst` with `meow_20_woof.lst`, except for a few tests that are only intended to have `latest` coverage, notably `include_each_header_alone` and all of `libcxx`.
* Only define `__cpp_lib_format` and `__cpp_lib_ranges` in C++23 mode. Update the feature-test macro test accordingly.
2021-05-26 19:25:12 -07:00
Adam Bucior 274faebcb7
LWG-3494 Conditionally Borrowed Ranges (#1877)
Co-authored-by: Casey Carter <cacarter@microsoft.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-05-20 19:33:16 -07:00
Bishwajeet Parhi 905613b90d
Add _NODISCARD to stoi() etc. and various <locale> functions (#1809)
Co-authored-by: Casey Carter <cartec69@gmail.com>
2021-05-20 19:24:52 -07:00
Stephan T. Lavavej 29bd5bd905
Toolset update: VS 2019 16.10 Preview 4 (#1920) 2021-05-20 19:01:18 -07:00
Stephan T. Lavavej 65eb507777
Toolset update: VS 2019 16.10 Preview 2 (#1884) 2021-04-30 18:19:31 -07:00
Michael Schellenberger Costa 4946c741e5
[ranges] Apply resolution of LWG-3502 to elements_view (#1878)
Co-authored-by: Casey Carter <cacarter@microsoft.com>
2021-04-30 18:15:48 -07:00
Victor Zverovich 02ae70ae52
Fix more code bloat issues in <format> (#1874) 2021-04-30 18:10:37 -07:00
Michael Schellenberger Costa f17f2e7200
Fix error in take_view::begin by casting to the appropriate size (#1844)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-04-30 17:58:11 -07:00
futuarmo b29a701967
`<xloctime>`: `time_put::do_put` does not handle `EINVAL` from `_Wcsftime` (#1563)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2021-04-30 16:11:55 -07:00
Stephan T. Lavavej c33874c377
<chrono> Formatting: C++20's Final Boss (#1870)
Completes C++20.

Co-authored-by: Elnar Dakeshov <55715127+eldakesh-ms@users.noreply.github.com>
Co-authored-by: MattStephanson <68978048+MattStephanson@users.noreply.github.com>
Co-authored-by: mnatsuhara <46756417+mnatsuhara@users.noreply.github.com>
Co-authored-by: statementreply <statementreply@gmail.com>
2021-04-22 17:04:53 -07:00
Victor Zverovich 044bfa5202
Fix a severe code bloat issue in <format> (#1851)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-04-22 16:55:22 -07:00
Casey Carter 1363e7d9e3
<format>: Implement proposed resolution of LWG-3540 (#1867) 2021-04-22 16:15:52 -07:00
Charlie Barto 4fae2879f6
<format> locale fixes (#1862)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-04-22 16:11:14 -07:00
Casey Carter ccc5aaaadc
`<format>` assumes strings are encoded in the active code page (#1834) 2021-04-20 00:21:40 -07:00
Cameron DaCamara a10865713d
Update header units test for VSO-1309454 (#1841)
Co-authored-by: Cameron DaCamara <cadacama@microsoft.com>
2021-04-15 19:20:34 -07:00
Charlie Barto c12089e489
P0645R10 <format> Text Formatting (#1821)
Co-authored-by: Casey Carter <cacarter@microsoft.com>
Co-authored-by: Charles Barto <barto.charlie@gmail.com>
Co-authored-by: Elnar Dakeshov <55715127+eldakesh-ms@users.noreply.github.com>
Co-authored-by: MattStephanson <68978048+MattStephanson@users.noreply.github.com>
Co-authored-by: Michael Schellenberger Costa <mschellenbergercosta@googlemail.com>
Co-authored-by: mnatsuhara <46756417+mnatsuhara@users.noreply.github.com>
Co-authored-by: S. B. Tam <cpplearner@outlook.com>
Co-authored-by: statementreply <statementreply@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2021-04-15 00:30:44 -07:00
Casey Carter 3d145adb3c
Push _Rewrap_iterator up into <xutility> (#1832) 2021-04-14 15:00:46 -07:00
mnatsuhara fb2f89f936
Merging `[time.zone]`, `[time.clock]`, and `[time.parse]` pieces of P0355R7 (#1789)
Co-authored-by: d-winsor <danwin@microsoft.com>
Co-authored-by: MattStephanson <68978048+MattStephanson@users.noreply.github.com>
Co-authored-by: Miya Natsuhara <miya.natsuhara@gmail.com>
Co-authored-by: mnatsuhara <46756417+mnatsuhara@users.noreply.github.com>
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2021-04-05 19:38:32 -07:00
Curtis J Bezault 747cb8f841
Add standard library header units test to parallelism group (#1776) 2021-04-05 16:45:38 -07:00
Adam Bucior cf15e49e0e
More optimizations for contiguous iterators (#1772) 2021-04-05 16:41:00 -07:00
Stephan T. Lavavej b84fbcf496
Update comments for February 2021 LWG issues (#1686) 2021-04-05 16:29:17 -07:00
Jonathan Caves 6aed1a69d6
Port test fix for VSO-119283 (#1778) 2021-03-24 16:01:57 -07:00
Stephan T. Lavavej 21dd369ddb
Suppress warning C4640 emitted by MSVC constinit (#1611) 2021-03-23 22:00:19 -07:00
Steve Wishnousky e002186e9b
Add escape hatch for _USE_STD_VECTOR_ALGORITHMS (#1751)
Co-authored-by: Casey Carter <cartec69@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-03-23 17:04:29 -07:00
Adam Bucior dcba13b91e
Optimizations for contiguous iterators (#1433)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
Co-authored-by: Casey Carter <cacarter@microsoft.com>
2021-03-22 21:03:26 -07:00
Stephan T. Lavavej 38927915a8
Fix make_shared with throwing destructors (#1736) 2021-03-22 17:38:00 -07:00
Casey Carter 7570481d0b
Port STL portion of MSVC-PR-311353 (#1759) 2021-03-19 15:57:56 -07:00
Casey Carter 1cca4823a4
Define __cpp_lib_ranges (#1748)
Update list of implemented proposals

I have verified that all 23 proposals and 35 LWG issues listed in #39 are implemented either on main, in #1436, or in #1731.

Fixes #39
2021-03-18 13:32:26 -07:00
Casey Carter 038e07bf3f
Implement ranges::split_view (#1731) 2021-03-18 13:25:34 -07:00
Michael Schellenberger Costa 378dcadbe8
Implement ranges::join_view (#1436)
Co-authored-by: Casey Carter <cacarter@microsoft.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-03-18 12:27:07 -07:00
Stephan T. Lavavej 2d890fdadd
Update the Standard Library Header Units test for attributes (#1747) 2021-03-16 16:35:58 -07:00
Jonathan Emmett c5ee3b32bd
Downlevel standard coroutine support (#1730)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-03-11 20:45:03 -08:00
Michael Schellenberger Costa 194efde4bd
Fix ranges::uninitialized_copy/uninitialized_move for trivial types (#1713) 2021-03-04 14:44:44 -08:00
Stephan T. Lavavej ba4711881e
Toolset update: VS 2019 16.10 Preview 1 (#1711) 2021-03-04 14:27:48 -08:00