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

775 Коммитов

Автор SHA1 Сообщение Дата
stbergmann 38bfb3a755
Adapt some return statements to P2266R1 "Simpler implicit move" (#2025) 2021-07-19 18:18:07 -07:00
Adam Bucior 889da00d70
Forward declare `uses_allocator_construction_args` (#2023)
Co-authored-by: Casey Carter <cartec69@gmail.com>
2021-07-19 18:08:33 -07:00
Stephan T. Lavavej 9a9820df1a
Toolset update: VS 2022 17.0 Preview 2 (#2064) 2021-07-19 17:53:06 -07:00
Stephan T. Lavavej 280347a430
Port internal msbuild changes for ARM64EC (#2051) 2021-07-12 14:34:48 -07:00
Igor Zhukov e745bad3b1
P2186R2 Removing Garbage Collection Support (#2010)
Co-authored-by: Casey Carter <cartec69@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-06-29 16:22:11 -07:00
Casey Carter 5566b644a4
Don't rely on MSVC/Clang bugs in ranges test machinery (#2013) 2021-06-29 16:09:45 -07:00
Casey Carter 19e3d223af
GH-1674 is now LWG-3566 (#2011) 2021-06-29 16:03:12 -07:00
Sam Huang 6fe02ac09e
P1989R2 Range Constructor For `string_view` (#2000)
Co-authored-by: timsong-cpp <rs2740@gmail.com>
Co-authored-by: Casey Carter <cartec69@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-06-29 15:47:32 -07:00
Michael Schellenberger Costa 61ff9e66bc
LWG-3541 `indirectly_readable_traits` should be SFINAE-friendly for all types (#1992) 2021-06-29 14:48:49 -07:00
Matt Stephanson 27b916fe2b
`<chrono>`: Estimate width of aligned chronat strings (#2017)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-06-29 14:41:51 -07:00
Daniel Marshall 934a39ec18
Tests: Prepare for P2251 (trivially copyable `span`/`basic_string_view`) (#2015) 2021-06-29 14:32:41 -07:00
Igor Zhukov aaa5d08964
P2162R2 Inheriting From variant (#2006)
Co-authored-by: Casey Carter <Casey@Carter.net>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-06-29 14:23:08 -07:00
Sam Huang a8c7283e02
P2166R1 Prohibiting basic_string And basic_string_view Construction From nullptr (#1995)
Co-authored-by: Casey Carter <cacarter@microsoft.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-06-29 04:48:18 -07:00
Igor Zhukov d6959662e7
Update working draft revision to N4892 (#2018) 2021-06-29 04:45:15 -07:00
Casey Carter f863dc4e9a
Update cgmanifest for 16.11 (#2016) 2021-06-29 04:42:05 -07:00
Matt Stephanson 6b12c4a116
`<chrono>`: Parse subseconds when the underlying type supports it (#1987)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-06-29 04:34:45 -07:00
Adam Bucior 8a6585a8ec
LWG-3548 shared_ptr construction from unique_ptr should move (not copy) the deleter (#2007)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-06-29 04:30:45 -07:00
Michael Schellenberger Costa 853e64fa44
LWG-3553 Useless constraint in `split_view::outer-iterator::value_type::begin()` (#1990) 2021-06-29 04:19:39 -07:00
Michael Schellenberger Costa 96b3678a93
LWG-3555 `{transform,elements}_view::iterator::iterator_concept` should consider `const`-qualification of the underlying range (#1989) 2021-06-29 04:13:26 -07:00
S. B. Tam 1bfe5b1959
Repairing `counted_iterator` (#1939)
Co-authored-by: Casey Carter <cartec69@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-06-29 04:02:03 -07:00
Casey Carter 4449d8ae0b
LWG-3430, fstream should be constructible from string_view (#1968) 2021-06-29 03:55:49 -07:00
Casey Carter 46c040d68e
`filesystem::u8path` should accept `char8_t` sources (#1943)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-06-29 03:49:49 -07:00
Matt Stephanson 7ed0be0057
<chrono>: Allow the parsing of year + day-of-year to a time_point (#1940) 2021-06-29 03:33:38 -07:00
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
Michael Schellenberger Costa a2e781b10a
Cleanup vector a bit (#1771)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2021-06-29 02:56:55 -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
Stephan T. Lavavej 8b269c83f0
Toolset update: VS 2019 16.11 Preview 2 (#2014) 2021-06-29 02:10:29 -07:00
Daniel Marshall 1866b848f0
<ranges>: Remove "per LWG" comments (#1967) 2021-06-11 20:33:15 -07:00
Sumit Bhardwaj ae041aeed8
Adding `native_handle` to `jthread` (#1966) 2021-06-11 20:25:43 -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
Pankaj Patil 68383b0f44
<yvals_core.h>: Update _MSVC_STL_UPDATE to June 2021 (#1955) 2021-06-11 20:03:51 -07:00
mghalayini 39e77780bf
`<format>`: parameter name consistency: `_First`/`_Last` vs `_Begin`/`_End` (#1951) 2021-06-11 19:55:29 -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
Stephan T. Lavavej 20288f94e4
Split/fuse `xlocinfo.h` to fix unintentional export in `format.cpp` (#1927)
* Extract `__msvc_xlocinfo_types.hpp`.

* Include `__msvc_xlocinfo_types.hpp` instead of `xlocinfo.h`.

In `xwctomb.cpp`, need to reorder functions.

Also, `<cwchar>` provides `wmemcmp`, not `<cstring>`.

* Fuse `xlocinfo.h`.
2021-06-04 09:50:10 -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
Stephan T. Lavavej aa5145c8be
Build the STL with /ZH:SHA_256. (#1829) 2021-06-03 09:36:37 -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
Himanshu cb3718935a
Update `_MSVC_STL_UPDATE` to May 2021 (#1897) 2021-05-20 19:38:04 -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