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

1165 Коммитов

Автор SHA1 Сообщение Дата
Matt Stephanson 8334fcabaa
`<random>`: Implement Lemire's fast integer generation (#3012)
Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-09-22 14:15:59 -07:00
Stephan T. Lavavej 2f03bdf361
P2465R3 Standard Library Modules `std` And `std.compat` (#3108) 2022-09-19 14:47:02 -07:00
S. B. Tam 67a96a910f
Implement P2508R1 basic_format_string, format_string, wformat_string (#3074) 2022-09-15 13:52:52 -07:00
nicole mazzuca ac129e595f
Add unwrapping to move_sentinel (#3098)
Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-09-13 14:59:53 -07:00
Rose 731b1223bd
Use std::size over sizeof/sizeof (#3090)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-09-13 14:51:04 -07:00
A. Jiang 6cd74fd6ff
`<xlocale>`: _Uglify non-conforming `locale::c_str()` (#3088) 2022-09-13 14:44:25 -07:00
Rose 7eea1bf17e
Remove unneeded static casts (#3086) 2022-09-13 14:42:48 -07:00
Stephan T. Lavavej 5e14dfe73f
Skip Azure Pipelines for draft PRs (#3078) 2022-09-13 14:31:38 -07:00
Ellis Nielsen cade0a7004
<yvals_core.h> Update P2549 to new revision (#3075) 2022-09-13 14:24:31 -07:00
Teodor Sorescu cbbbf4dbff
Update _MSVC_STL_UPDATE to September 2022 (#3073) 2022-09-13 14:21:24 -07:00
Casey Carter 82c81e8fb1
Check the slide_view constructor precondition added by LWG-3711 (#2949)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-09-13 14:17:55 -07:00
Casey Carter f70a608a01
Update `variant` "all types same/convertible" metaprogramming (#3070) 2022-09-03 15:47:03 -07:00
Stephan T. Lavavej 03527597a2
Improve warning suppressions for header units (#3069) 2022-09-03 15:38:47 -07:00
Alex Guteniev 0962491c91
Update `get_future`'s `[[nodiscard("message")]]` (#3068)
Co-authored-by: Jovibor <jovibor@users.noreply.github.com>
2022-09-03 15:36:20 -07:00
Stephan T. Lavavej af8adfa73b
Enable `__builtin_bit_cast` for CUDA (#3066) 2022-08-31 18:13:38 -07:00
A. Jiang 434f83cbc3
Implement P2438R2 `string::substr() &&` (#3057)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-08-31 17:12:31 -07:00
A. Jiang f441292bb4
`<__msvc_int128.hpp>`: Backport 128-bit integer-class types to C++14 mode (#3036)
Co-authored-by: Matt Stephanson <stephanson.matt@gmail.com>
Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-08-31 16:23:13 -07:00
nicole mazzuca 449502909c
Unwrappable iter/sent pairs! (#3024)
Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-08-31 16:17:10 -07:00
Alex Guteniev 539c26c923
[[nodiscard]] messages (#2211)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-08-31 16:06:54 -07:00
Igor Zhukov de060c5fce
add _ENFORCE_ONLY_CORE_HEADERS (#2068)
Co-authored-by: Michael Schellenberger Costa <mschellenbergercosta@gmail.com>
Co-authored-by: Adam Bucior <35536269+AdamBucior@users.noreply.github.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-08-31 16:00:51 -07:00
David Olsen 8ca7bd3c00
Parallel for_each iterators don't have to be mutable (#3056) 2022-08-26 17:47:26 -07:00
Igor Zhukov c23bbd898f
add `__forceinline` to `std::unreachable` instead of `inline` (#3055)
Co-authored-by: Alexander Bessonov <alexbav@hhdsoftware.com>
2022-08-26 17:43:53 -07:00
Casey Carter 05e5e6838e
Cleanup product code uses of feature-test macros (#3053)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-08-26 17:33:09 -07:00
Adam Bucior 473245cca7
Implement P2291R3 `constexpr` Integral `<charconv>` (#3049)
Co-authored-by: Casey Carter <cartec69@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-08-26 17:26:32 -07:00
Casey Carter 7cdd700459
`ranges::distance` fails to emulate the Standard's two overload presentation (#2987)
Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-08-26 17:21:59 -07:00
nicole mazzuca 04e304b147
Implement P2494R2 Relaxing Range Adaptors To Allow Move-Only Types (#2965)
Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
Co-authored-by: A. Jiang <de34@live.cn>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
Co-authored-by: Casey Carter <Casey@Carter.net>
2022-08-26 17:15:58 -07:00
Igor Zhukov f241c79ac1
<regex>: add checks for integer overflow (#2169)
Co-authored-by: Alex Guteniev <gutenev@gmail.com>
Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-08-26 17:03:29 -07:00
Stephan T. Lavavej febb6430ac
Fix `pair::swap(const pair&)` and `tuple::swap(const tuple&)` errors with `__declspec(dllexport)` (#3045) 2022-08-22 14:29:25 -07:00
Stephan T. Lavavej 2a1b881e2f
`_Fake_copy_init` unification (#3041) 2022-08-22 14:26:39 -07:00
Casey Carter ad18417c3e
Test ASAN SSO string copies; improve `basic_string::_Construct` preconditions (#3039)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2022-08-22 14:18:38 -07:00
S. B. Tam ff29e7a6d0
Implement P2419R2 Clarify Handling Of Encodings In Localized Formatting Of `chrono` Types (#2977)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-08-22 14:13:08 -07:00
Ukilele 2ae879b73c
P2387R3 Pipe for user defined range adaptors (#2661)
Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
Co-authored-by: Casey Carter <Casey@Carter.net>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-08-22 14:05:48 -07:00
Igor Zhukov 22d6408f24
Use `int = 0` SFINAE in `<memory>` to improve compiler throughput (#2124)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2022-08-22 14:00:11 -07:00
Alex Guteniev 39b29dd049
Fix null function check for `move_only_function` (#3038)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-08-18 14:27:45 -07:00
Igor Zhukov ed0e3e5ad9
`<string_view>`: suppress warning about annotation 'NullTerminated' (#3032)
Co-authored-by: Casey Carter <Casey@Carter.net>
2022-08-18 14:22:21 -07:00
Thomas Wise ae0c274dd3
Mark several functions as noexcept. (#1937)
Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-08-18 14:14:03 -07:00
nicole mazzuca ebbc9908ad
make _Get_unwrapped noexcept when possible (#2991)
Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
Co-authored-by: Casey Carter <Casey@Carter.net>
2022-08-16 12:34:52 -07:00
Michael Schellenberger Costa 5def9e7c6b
Improve exception specification of iterator machinery (#1347)
Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
Co-authored-by: Casey Carter <Casey@Carter.net>
2022-08-16 12:30:23 -07:00
Casey Carter b812b0e22b
`<xmemory>`: `_Uninitialized_copy` doesn't assign, it constructs (#3028)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-08-11 23:30:12 -07:00
Stephan T. Lavavej 1cc751a81c
Add escape hatches for source-breaking throughput improvements (#3027) 2022-08-11 23:25:15 -07:00
Casey Carter fea2b8cfee
Implement `(chunk_view<forward>|stride_view)::iterator::operator(\+=|-=)` in O(1) (#3023)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
Co-authored-by: S. B. Tam <cpplearner@outlook.com>
2022-08-11 22:38:26 -07:00
A. Jiang 35cf7df0cf
`<vector>`: Apply append-and-rotate for `vector<bool>` insertion (#3021)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-08-11 22:34:45 -07:00
Dale MVB db3eb43d22
Update _MSVC_STL_UPDATE (#3020) 2022-08-11 22:32:41 -07:00
Stephan T. Lavavej bafb10ea0d
Various cleanups (#3019) 2022-08-11 22:30:59 -07:00
Stephan T. Lavavej 7558a2af16
Change `typedef` to `using` (#3018) 2022-08-11 22:28:42 -07:00
Jakub Mazurkiewicz 4a8d6ddb1e
P2446R2: `views::as_rvalue` (#3008)
Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-08-11 22:21:49 -07:00
A. Jiang 4b22dd67ec
`<random>`: Improvements around `static constexpr` member variables (#3006) 2022-08-11 22:17:54 -07:00
Sam Huang 9475fa6e66
`yvals_core.h`: Consistent diagnostics and warnings (#2973)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
Co-authored-by: Casey Carter <Casey@Carter.net>
2022-08-11 22:14:53 -07:00
Hamid Reza Arzaghi fce2d42a5f
detect forbidden aliasing (#1263)
Co-authored-by: Hamid Reza Arzaghi <arzaghi@outlook.com>
Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-08-11 22:11:31 -07:00
Stephan T. Lavavej 4c8d0ae7ec
Toolset update: VS 2022 17.4 Preview 1 (#3017) 2022-08-11 22:05:21 -07:00
S. B. Tam ced5cdef7c
Use `_Invoke_result_t<_Urng&>` instead of `_Urng::result_type` in `_Rng_from_urng` (#3002)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-08-09 03:15:29 -07:00
Casey Carter b1c4c50cd6
<format>: all nans are "nan" (#3001)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-08-09 03:07:51 -07:00
Stephan T. Lavavej 1aca79315d
`<functional>` should avoid including `<memory>` (#2998) 2022-08-09 03:01:49 -07:00
YairBorn 9aaab62ff1
`<xstring>`: Comment why `basic_string::_Is_elem_cptr` can't be a variable template (#2980)
Co-authored-by: Igor Zhukov <fsb4000@yandex.ru>
2022-08-09 01:23:09 -07:00
Casey Carter 56446a5eeb
P1206R7 Conversions From Ranges To Containers (#2806)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-08-09 01:16:51 -07:00
Stephan T. Lavavej 2263d931f4
`<xhash>` should avoid including `<xstring>` (#2996) 2022-08-06 18:05:58 -07:00
Jakub Mazurkiewicz 7b5a482876
P1899R3: `views::stride` (#2981)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
2022-08-06 18:02:00 -07:00
Stephan T. Lavavej b52e35bcc0
Add `__cpp_lib_concepts` guard for `__cpp_lib_move_iterator_concept` (#2994) 2022-08-05 16:49:36 -07:00
Casey Carter 1fe625d713
`chrono::abs` incorrectly uses `?:` with expressions that don't always have a common type (#2988) 2022-08-05 16:46:11 -07:00
A. Jiang 577269c56a
Implement P2445R1 `forward_like()` (#2974)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-08-05 16:40:30 -07:00
A. Jiang 097e59ba9a
`<variant>`: Make `visit<R>` correctly handle conversions to non-movable types (#2971)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
Co-authored-by: Casey Carter <Casey@Carter.net>
2022-08-05 16:33:51 -07:00
A. Jiang 4677baef1c
Implement LWG-3617: `function`/`packaged_task` deduction guides and deducing `this` (#2966)
Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-08-05 16:26:26 -07:00
A. Jiang 3e046a483e
Implement LWG-3564: `transform_view::iterator<true>::value_type` and `iterator_category` should use `const F&` (#2961) 2022-08-05 16:22:50 -07:00
S. B. Tam 9ed0e6bd89
`chunk_by_view`'s helper lambda returns `bool` (#2890)
Co-authored-by: Casey Carter <Casey@Carter.net>
2022-08-05 16:16:38 -07:00
Amy Wishnousky 1a418ba4e9
Temporarily disable ASAN string annotations (#2990)
Temporarily disable ASAN string annotations.
2022-08-03 20:47:26 -07:00
A. Jiang 09d5ac7d5e
`<xutility>`: Some fixes around `std::ranges::enable_view` (#2978)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-08-03 16:23:17 -07:00
Igor Zhukov b8371b04df
Implement P2417R2 More `constexpr` `bitset` (#2972)
Co-authored-by: Daniel Marshall <xandan@gmail.com>
Co-authored-by: A. Jiang <de34@live.cn>
Co-authored-by: Casey Carter <cartec69@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-08-03 16:17:26 -07:00
Casey Carter 9567121b15
Pass rvalues to `_Seek_to` in `ranges::uninitialized_(copy|move)_n` (#2964) 2022-08-03 16:11:34 -07:00
nicole mazzuca d9b453433e
Implement P2408R5: Ranges Iterators As Inputs To Non-Ranges Algorithms (#2960)
Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-08-03 16:05:59 -07:00
nicole mazzuca c231f7ff1f
Implement P2517R1: Conditional `noexcept` For `apply` (#2959)
Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-08-03 16:01:21 -07:00
nicole mazzuca 85f4639879
Implement P2520R0: `move_iterator<T*>` should be a random access iterator (#2958)
Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-08-03 15:54:29 -07:00
nicole mazzuca 12c5143f73
Implement LWG-3701: Make `formatter<remove_cvref_t<const charT[N]>, charT>` requirement explicit (#2957)
Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
2022-08-03 15:47:44 -07:00
nicole mazzuca 222a5584fd
Prettify STL error output (#2897)
Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-08-03 15:43:37 -07:00
Casey Carter b7e0365b5e
Cleanup comments after merging LWG-3670 and LWG-3705 (#2950) 2022-07-27 20:59:28 -07:00
Sam Huang 6db1eb4489
Implement P2499R0: `string_view` Range Constructor Should Be `explicit` (#2947) 2022-07-27 20:55:36 -07:00
A. Jiang 06e7769550
Implement LWG-3715: `view_interface::empty` is overconstrained (#2946)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-07-27 20:53:00 -07:00
A. Jiang 374fc90b6c
Implement LWG-3712: `chunk_view` and `slide_view` should not be `default_initializable` (#2943)
Co-authored-by: Casey Carter <Casey@Carter.net>
2022-07-27 20:50:07 -07:00
Daniel Marshall f8a9c6f9b4
<algorithm> Implement P2302R4 ranges::contains (#2911)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
Co-authored-by: Casey Carter <cacarter@microsoft.com>
2022-07-27 20:46:15 -07:00
A. Jiang 99740916d6
Implement LWG-3672: `common_iterator::operator->()` should return by value (#2907)
Co-authored-by: Casey Carter <cartec69@gmail.com>
2022-07-27 20:42:07 -07:00
A. Jiang 028f92c1ea
Implement LWG-3721: Allow an arg-id with a value of zero for width in std-format-spec (#2906)
Co-authored-by: Casey Carter <Casey@Carter.net>
2022-07-27 20:39:32 -07:00
A. Jiang d575533dcd
Implement LWG-3671: `atomic_fetch_xor` missing from `stdatomic.h` (#2905) 2022-07-27 20:36:58 -07:00
A. Jiang 9aff8c5a5a
Implement LWG-3724: `decay-copy` should be constrained (#2903) 2022-07-27 20:32:43 -07:00
A. Jiang 3da2dfd6a7
Implement LWG-3719: Directory iterators should be usable with default sentinel (#2902)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-07-27 20:30:05 -07:00
Jakub Mazurkiewicz 9062b7ff3e
Implement LWG-3707: `chunk_view::outer-iterator::value_type::size` should return unsigned type (#2883) 2022-07-27 19:13:05 -07:00
A. Jiang da41fe1a74
Implement LWG-3656: Inconsistent bit operations returning a count (#2880)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-07-27 19:10:23 -07:00
A. Jiang f67fef19aa
Implement LWG-3683: `operator==` for `polymorphic_allocator` cannot deduce template argument in common cases (#2879) 2022-07-27 19:06:50 -07:00
Jinze Wu b4d14a6050
Implement LWG-3710: The `end` of `chunk_view` for input ranges can be `const` (#2878)
Co-authored-by: Casey Carter <cacarter@microsoft.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-07-27 19:02:18 -07:00
nicole mazzuca a0b84e0d6a
`<filesystem>` support junctions in `read_symlink` (#2877)
Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-07-27 18:57:18 -07:00
nicole mazzuca b4c409cc50
Fix LWG-3699 `lexically_relative` on UNC drive paths (`\\?\C:\...`) results in a default-constructed value (#2867)
Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
2022-07-27 18:50:26 -07:00
Igor Zhukov dc29e30c8b
add STL4038 prefix to "requires C++NN or later" messages (#2061)
Co-authored-by: Adam Bucior <35536269+AdamBucior@users.noreply.github.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-07-27 18:40:10 -07:00
statementreply 04ee87830a
Fix incorrect result of `complex` `log`/`log10`/`pow` on ARM64 (#2870)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-07-20 17:31:30 -07:00
Stephan T. Lavavej d4f9f06938
Extract `_Bitmask_includes_any()`, `_Bitmask_includes_all()` from `_BITMASK_OPS` (#2865) 2022-07-20 17:25:23 -07:00
Casey Carter c9057075c6
Update workaround bug number (#2863) 2022-07-20 17:19:15 -07:00
Charlie Barto 97b476c17f
<atomic> refactoring to support C11 (#2846) 2022-07-20 16:33:45 -07:00
Alex Guteniev 27b006e4d1
Move charconv tables (#2125)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2022-07-20 16:14:50 -07:00
Matt Stephanson ef62d3fa0b
`<complex>`: avoid unnecessary conversion of real arguments to complex (#2855)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-07-14 15:40:01 -07:00
Igor Zhukov 5d0006573d
remove `directory_entry::clear_cache` (#2854) 2022-07-14 15:33:40 -07:00
Alikhalesi 16207c85e5
<xloctime>: time_get::get can still assert 'istreambuf_iterator is not dereferenceable' when the format is longer than the stream (#2851) 2022-07-14 15:12:21 -07:00
Stephan T. Lavavej 18451dc254
Toolset update: VS 2022 17.3 Preview 3, Clang 14 (#2861)
Co-authored-by: Casey Carter <Casey@Carter.net>
2022-07-14 15:03:09 -07:00
Stephan T. Lavavej 969b2e250d
<cstdlib>: Provide std::getenv and std::system for UWP apps (#2850) 2022-07-11 17:18:02 -07:00
Alikhalesi a4dc8a7110
<yvals_core.h>: Update _MSVC_STL_UPDATE to July 2022 (#2840) 2022-07-11 17:05:32 -07:00
Charlie Barto 51c24c4024
Fix chrono printing for durations with extremely small periods (#2814)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-07-11 16:45:21 -07:00
Stephan T. Lavavej c34f24920e
`<tuple>`: Overhaul `tuple_cat()` for simplicity and less special-casing (#2833)
Co-authored-by: ArtemSarmini <16746066+ArtemSarmini@users.noreply.github.com>
2022-06-30 19:31:30 -07:00
Stephan T. Lavavej 020aad2e08
Move machinery from `inc/ymath.h` to `src/xmath.hpp` (#2828) 2022-06-30 19:28:13 -07:00
Alex Guteniev e619743ae4
Extend range of min max optimization (#2825) 2022-06-30 19:23:44 -07:00
Igor Zhukov 0e29ddb576
workaround for std::source_location::current() (#2824) 2022-06-30 19:19:26 -07:00
Rose ff97e90abb
Refactor Filesystem Code for Clarity (#2766)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
2022-06-30 18:58:38 -07:00
Igor Zhukov 600f25753c
`syserror.cpp`: update `_Syserror_map` (#2742) 2022-06-30 18:48:17 -07:00
Alex Guteniev 1f37fe7a66
Hasta la Vista (#2317)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-06-30 18:32:19 -07:00
Igor Zhukov 4583065cb9
`xloctime`: `do_put` shouldn't modify errno on success (#2049)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2022-06-30 18:26:07 -07:00
Alex Guteniev be74e53d83
New BOOL rules (#2815) 2022-06-25 15:28:48 -07:00
Stephan T. Lavavej bb71d6c5da
P0849R8 `auto(x)`: `decay-copy` In The Language (#2808) 2022-06-25 15:10:22 -07:00
Igor Zhukov 5c2d2ad545
add default ctor for node types (#2782)
Co-authored-by: A. Jiang <de34@live.cn>
Co-authored-by: Casey Carter <Casey@Carter.net>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-06-25 14:50:00 -07:00
Stephan T. Lavavej ee43e7097e
My Little Operator: Friendship Is Magic (#2797) 2022-06-19 18:01:39 -07:00
Stephan T. Lavavej 6b0d0fb51b
Use conditional `explicit` unconditionally (#2796) 2022-06-19 17:55:49 -07:00
S. B. Tam 34c9a73e9f
Implement P2441R2 views::join_with (#2619)
Co-authored-by: Michael Schellenberger Costa <mschellenbergercosta@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
Co-authored-by: Casey Carter <Casey@Carter.net>
2022-06-19 17:52:03 -07:00
Igor Zhukov 8e5d0aa8b8
Recalculate lerp if we got infinity. Eliminates some overflows. (#1918)
Co-authored-by: Adam Bucior <35536269+AdamBucior@users.noreply.github.com>
Co-authored-by: Alexander Bolz <lt.morris.schaffer@googlemail.com>
Co-authored-by: Curtis J Bezault <curtbezault@gmail.com>
Co-authored-by: Matt Stephanson <stephanson.matt@gmail.com>
Co-authored-by: Michael Schellenberger Costa <mschellenbergercosta@googlemail.com>
Co-authored-by: statementreply <statementreply@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-06-19 17:46:08 -07:00
Stephan T. Lavavej d047fb3fa4
Various header cleanups (#2802) 2022-06-19 17:42:13 -07:00
Stephan T. Lavavej 06e0755c74
P1328R1 `constexpr` `type_info::operator==()` (#2793) 2022-06-19 17:19:57 -07:00
statementreply d013afe78b
Fix leap second validation when parsing `time_point`s (#2705)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
2022-06-19 17:07:53 -07:00
Igor Zhukov 3f203cb0d9
change SFINAE constraint on `construct_at` (MSVC workaround) (#2624)
Co-authored-by: A. Jiang <de34@live.cn>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-06-19 16:48:59 -07:00
Alex Guteniev 78cd43610e
Implement vectorized min_ / max_element for ints (#2447)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-06-19 16:37:18 -07:00
DailyShana e093bb13da
<filesystem>: Avoid additional allocations in path::lexically_relative (#1915)
Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
2022-06-19 16:29:46 -07:00
Michael Schellenberger Costa 1ea95df4d4
Implement SSO for constexpr string (#1735)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
Co-authored-by: Casey Carter <Casey@Carter.net>
2022-06-19 16:21:45 -07:00
Hamid Reza Arzaghi ca977f06bf
<filesystem>: `directory_entry(const path&, error_code&)` should return error code (#1343)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
2022-06-19 16:03:37 -07:00
Stephan T. Lavavej ea32e86dee
Mark constants as `_INLINE_VAR constexpr`. (#2792) 2022-06-15 18:35:17 -07:00
Casey Carter 5419d49ee3
Don't deallocate nullptr in _Hash_vec::_Tidy (#2790)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-06-15 18:27:55 -07:00
Igor Zhukov 8fca26f8c1
allow `%x` for formatting `year_month_day` (#2762)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-06-15 18:20:13 -07:00
Mital Ashok 7c56519d8c
Implement P2440R1 ranges::iota, ranges::shift_left, ranges::shift_right (#2580)
Co-authored-by: Casey Carter <Casey@Carter.net>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-06-15 18:17:00 -07:00
Igor Zhukov 85274ba282
When wchar_t is a real type, users shouldn't see unsigned short machinery (#2164) 2022-06-15 17:58:46 -07:00
Stephan T. Lavavej 183a1e22c4
Toolset update: VS 2022 17.3 Preview 2, CUDA 11.6.0 (#2791)
Co-authored-by: Casey Carter <Casey@Carter.net>
2022-06-15 17:50:30 -07:00
A. Jiang 9947dd9d6d
`<deque>`: Properly destroy (fancy) pointers to blocks in the internal map (#2775)
Co-authored-by: Michael Schellenberger Costa <mschellenbergercosta@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-06-12 04:15:53 -07:00
Casey Carter 77a9b2e99e
Don't assume that `_Hash_vec`'s size and capacity are always equal (#2774) 2022-06-12 03:17:51 -07:00
Igor Zhukov 1385898482
fix `format` a `long` value with `formatter` (#2768)
Co-authored-by: S. B. Tam <cpplearner@outlook.com>
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2022-06-12 03:12:16 -07:00
MarcinLigeza 1c4166e9fb
<yvals_core.h>: Update _MSVC_STL_UPDATE to June 2022 (#2764) 2022-06-12 03:09:24 -07:00
Igor Zhukov 99cdfa8337
`<syncstream>`: fix `std::osyncstream` memory leak (#2763)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-06-12 03:04:35 -07:00
Alex Guteniev 03d73dfcb6
Deprecate primary complex (#2759)
Co-authored-by: Casey Carter <cartec69@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2022-06-12 02:59:47 -07:00
Igor Zhukov 12efbdbedc
`<complex>`: fix complex division by zero (#2758)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
Co-authored-by: statementreply <statementreply@gmail.com>
2022-06-12 02:50:45 -07:00
mordante 82acfcf4c3
Compact the _Unicode_property_data tables. (#2757)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-06-12 02:44:05 -07:00
A. Jiang 01a03dde0a
Untag dispatch `get` for `pair` (#2756)
Co-authored-by: Casey Carter <Casey@Carter.net>
2022-06-12 02:39:13 -07:00
Igor Zhukov 37b51205fb
Support char8_t in C++17 and C++14 modes (#2748)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
Co-authored-by: Casey Carter <Casey@Carter.net>
2022-06-12 02:32:56 -07:00
Alex Guteniev e178ea2c52
stacktrace (#2502)
Co-authored-by: Adam Bucior <35536269+AdamBucior@users.noreply.github.com>
Co-authored-by: Daniel Marshall <xandan@gmail.com>
Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2022-06-12 02:27:31 -07:00
Adam Bucior 877cabab45
Use iterator concept in vector's range constructor (#1794)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-06-12 02:18:00 -07:00
Igor Zhukov 7e0f223648
`<format>`: add a workaround for /presetPadding (#2746)
Co-authored-by: Casey Carter <Casey@Carter.net>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-06-01 17:47:32 -07:00
A. Jiang d8d8a6b505
`<xstring>`: Restrict enabled `hash` specializations as required by the standard (#2741)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-06-01 17:38:56 -07:00
Igor Zhukov a3c1eb2e03
codecvt: no conversion for all char-like types of size 1. (#2739)
Co-authored-by: Alex Guteniev <gutenev@gmail.com>
2022-06-01 17:28:16 -07:00
A. Jiang 87b1f5d134
`<tuple>`: Becomes a core header (#2730) 2022-06-01 17:24:43 -07:00
Alex Guteniev ae710e7b07
clamp cmov codegen (#2336)
Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-06-01 17:16:25 -07:00
Igor Zhukov 79bf9976d0
<any>: std::any links when exceptions are disabled (#2193)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-06-01 17:10:19 -07:00
Igor Zhukov f539c0e5cc
remove `const` from `<random>` distribution::`operator()` (#2732)
Co-authored-by: Casey Carter <cartec69@gmail.com>
2022-05-23 18:00:08 -07:00
S. B. Tam 296681379d
`<ranges>`: Temporarily disable `join_view` for non-`forward_range`s, pending resolution of LWG-3698 (#2727)
Co-authored-by: Casey Carter <cartec69@gmail.com>
Co-authored-by: timsong-cpp <rs2740@gmail.com>
2022-05-23 17:51:45 -07:00
A. Jiang 4761b6dabe
`<xmemory>`: Remove `std::allocator<void>` full specialization (#2726)
Co-authored-by: Casey Carter <cartec69@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-05-23 17:45:50 -07:00
Igor Zhukov 39f8c34069
`<functional>`: is compatible with `/Zc:alignedNew-` now (#2712)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
Co-authored-by: Casey Carter <Casey@Carter.net>
2022-05-23 17:35:53 -07:00
Michael Schellenberger Costa b7ba3ad82f
<expected> Implement P0323R12 (#2643)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
Co-authored-by: Casey Carter <Casey@Carter.net>
2022-05-23 17:27:44 -07:00
Igor Zhukov 9ca4a292c2
`<ciso646>` is removed in C++20 (#2710)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-05-16 21:34:26 -07:00
Michael Schellenberger Costa 5795df3d80
<ranges> Implement P2442R1 `chunk_view` (#2685)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-05-16 21:22:01 -07:00
Michael Schellenberger Costa dffb7ad25a
<ranges> Implement P2442R1 slide_view (#2670)
Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-05-16 20:53:15 -07:00
Alex Guteniev cbd964dd8f
P1413R3 Deprecate `aligned_storage` & `aligned_union` (#2583)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-05-16 20:48:21 -07:00
Michael Schellenberger Costa 46c0bcba4a
<string> Add asan annotations (#2196)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2022-05-16 20:44:08 -07:00
Stephan T. Lavavej 488e789386
Block C++98 `unexpected()` from being restored in C++23 mode (#2709) 2022-05-09 16:57:49 -07:00
A. Jiang c183fa88f1
Speculatively implement LWG-3234: Sufficient Additional Special Math Overloads (#2703)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-05-05 02:48:28 -07:00
Stephan T. Lavavej 9ccb781ce7
Scalarize `swap` and `ranges::swap` for arrays (#2700) 2022-05-05 02:44:14 -07:00
Jakub Mazurkiewicz 37e8fbfa46
Update `_MSVC_STL_UPDATE` macro (#2696) 2022-05-05 02:36:41 -07:00
Alex Guteniev bebd80efe0
Untag dispatch vector<bool>::_Insert (#2694)
Co-authored-by: Casey Carter <cartec69@gmail.com>
2022-05-05 02:34:01 -07:00
Alex Guteniev cf15d6c1e0
Untag dispatch `<random>` (#2693)
Co-authored-by: Michael Schellenberger Costa <mschellenbergercosta@gmail.com>
Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
2022-05-05 02:27:17 -07:00
S. B. Tam f8748eb6d9
P2321R2 zip: Make `tuple`, `pair`, and `vector<bool>::reference` `indirectly_writable` (#2687)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-05-05 02:20:20 -07:00
Alex Guteniev 0a618dfb93
Reduce `_Invoker_ret` specializations with `if constexpr` (#2668) 2022-05-05 02:13:53 -07:00
Igor Zhukov 39a0ea71be
`<cmath>`: add arithmetic overloads for `std::lerp` (#2113)
Co-authored-by: Casey Carter <Casey@Carter.net>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-05-05 02:03:25 -07:00
Axel Boldt-Christmas 24b899e4ad
<memory>: Fix atomic smart pointers array type interaction (#1339)
Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
2022-05-05 01:57:32 -07:00
Stephan T. Lavavej d89a32b2a4
`<atomic>`: Fix missing ARM64EC ifdefs (#2702) 2022-05-04 15:31:40 -07:00
Stephan T. Lavavej 39332e104d
Vectorize `swap` and `ranges::swap` for arrays (#2689) 2022-05-01 03:55:13 -07:00
Stephan T. Lavavej e9c2444cd4
Cleanups 8: Deprecate `<strstream>` classes instead of the entire header (#2680) 2022-05-01 03:48:16 -07:00
Stephan T. Lavavej 4b3d984c3b
Cleanups 7: Unnecessary guard around `new_handler` (#2679) 2022-05-01 03:46:42 -07:00
Stephan T. Lavavej 64afd795a5
Cleanups 6: iostreams: drop `extern`, hide `_Winit` (#2678) 2022-05-01 03:44:23 -07:00
Stephan T. Lavavej aaa0863e81
Cleanups 5: `if constexpr` for `<scoped_allocator>` `operator==` (#2677) 2022-05-01 03:40:49 -07:00
Stephan T. Lavavej 311c59a45e
Cleanups 4: `quoted()` (#2676) 2022-05-01 03:38:34 -07:00
Stephan T. Lavavej b9505b9818
Cleanups 3: Simple changes (#2675) 2022-05-01 03:36:42 -07:00
Stephan T. Lavavej 2f7bfce869
Cleanups 2: Exception handling (#2674) 2022-05-01 03:35:10 -07:00
Stephan T. Lavavej be47a3a813
Cleanups 1: Comments and formatting (#2673) 2022-05-01 03:32:47 -07:00
Matt Stephanson b965db4e56
`<xloctime>`: apply two-digit year logic only if exactly two digits are read (#2666)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2022-05-01 03:07:27 -07:00
Alex Guteniev b0b9a58b35
Untag dispatch `<execution>` (#2662) 2022-05-01 03:02:32 -07:00
Alex Guteniev a10c471db2
Untag dispatch `<xstring>` (#2660)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-05-01 02:58:06 -07:00
A. Jiang 54f4ac6cd2
Implement LWG-3525: `uses_allocator_construction_args` fails to handle types convertible to `pair` (#2639)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
Co-authored-by: Casey Carter <cacarter@microsoft.com>
2022-05-01 02:53:47 -07:00
Charlie Barto 9d1421dabf
<format>: Add grapheme clusterization support for width computation (#2119)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-04-26 18:49:07 -07:00
Casey Carter 0349ce1540
Annotate some functions `_MSVC_CONSTEXPR` (#2658) 2022-04-19 01:11:36 -07:00
Stephan T. Lavavej 9bf8f3f9b0
Even more various cleanups (#2656) 2022-04-15 20:21:08 -07:00
Casey Carter 7209f869b7
Guard use of custom attributes against macroization (#2649) 2022-04-15 17:57:02 -07:00
Charlie Barto 3ab44c2155
`<bit>`: fix `countl_zero` on arm64 (#2647)
Co-authored-by: Alex Guteniev <gutenev@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-04-15 17:50:18 -07:00
A. Jiang 0c73091ea7
Implement LWG-3121: `tuple` constructor constraints for `UTypes&&...` overloads (#2640)
Co-authored-by: S. B. Tam <cpplearner@outlook.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-04-15 17:45:11 -07:00
Igor Zhukov 9f0e33bc83
fix `treat_as_floating_point_v<_DurationType>` (#2638)
Co-authored-by: Daniel Krügler <daniel.kruegler@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-04-15 17:38:10 -07:00
Stephan T. Lavavej fa02b10776
Toolset update: VS 2022 17.2 Preview 3 (#2651) 2022-04-15 17:27:15 -07:00
Eleni Partakki 52505b9d32
Update `_MSVC_STL_UPDATE` (#2634) 2022-04-04 13:49:57 -07:00
S. B. Tam e7f5b274d7
Workaround for LLVM-46269 constrained destructor ordering (#2630) 2022-04-04 13:43:29 -07:00
Stephan T. Lavavej 2127ea0096
Remove parallel `copy_backward()` and `move_backward()` (#2627) 2022-04-04 13:33:55 -07:00
Stephan T. Lavavej 57b28c781a
`<charconv>`: `_Divide` can trim `_Big_integer_flt` more efficiently (#2623) 2022-04-04 13:30:25 -07:00
Stephan T. Lavavej bcf2b794be
Use `_NODISCARD_FRIEND` everywhere (#2622) 2022-04-04 13:21:44 -07:00
Stephan T. Lavavej baef90317d
More various cleanups (#2621) 2022-04-04 13:13:16 -07:00
Alex Guteniev 2aabd75443
SSE2 & AVX2 std::find & std::count (#2434)
Co-authored-by: Michael Schellenberger Costa <mschellenbergercosta@gmail.com>
Co-authored-by: S. B. Tam <cpplearner@outlook.com>
Co-authored-by: Casey Carter <Casey@Carter.net>
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2022-04-04 12:45:48 -07:00
Charlie Barto 1b6fa43c52
<stdatomic.h>: Simplify preprocessor logic (#2615) 2022-03-28 16:50:07 -07:00
S. B. Tam f307b76c23
Cache `_Fmt_codec<char, false>` (#2600) 2022-03-28 16:43:05 -07:00
Ed Catmur c42ad5cabf
Fail time parsing if input is insufficient to supply all fields (#2523)
Co-authored-by: Matt Stephanson <68978048+MattStephanson@users.noreply.github.com>
2022-03-28 16:31:15 -07:00
Igor Zhukov c302187889
`<filesystem>`: `path` should be `range` (#2457)
Co-authored-by: Alex Guteniev <gutenev@gmail.com>
Co-authored-by: Casey Carter <cacarter@microsoft.com>
2022-03-28 16:20:49 -07:00
Alex Guteniev 3b5d49b1b0
<deque>: _RERAISE -> scope guard (#2308)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
Co-authored-by: Casey Carter <Casey@Carter.net>
2022-03-28 16:04:51 -07:00
A. Jiang f099e9c9f9
Add missing implicit SFINAE constraints (#2607)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-03-19 03:30:29 -07:00
Stephan T. Lavavej fdcafc0dfd
Split `<chrono>` into `<__msvc_chrono.hpp>` (#2604)
Co-authored-by: cpplearner <cpplearner@outlook.com>
2022-03-19 03:25:27 -07:00
Stephan T. Lavavej f310638f9d
Various cleanups (#2595) 2022-03-19 03:18:47 -07:00
A. Jiang 8cc160124a
`<type_traits>`: Workaround for `common_reference` (#2592)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2022-03-19 03:12:45 -07:00
Casey Carter 291e0ad3c6
Even rvalue `empty_view`s are `borrowed_range`s (#2576)
....which we somehow missed when implementing P1870R1 "`forwarding-range<T>` is too subtle".
2022-03-19 03:04:27 -07:00
Alex Guteniev b973fd0837
Untag dispatch regex (#2484)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
Co-authored-by: Casey Carter <Casey@Carter.net>
2022-03-19 02:57:40 -07:00
Alex Guteniev c221b34b38
Untag dispatch find_first_of (#2479)
Co-authored-by: Casey Carter <Casey@Carter.net>
2022-03-19 02:51:40 -07:00
Alex Guteniev b380155bc8
Untag dispatch _Uses_allocator_construct (#2471)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
Co-authored-by: Casey Carter <cartec69@gmail.com>
2022-03-19 02:48:20 -07:00
Alex Guteniev 7312e5b356
Untag dispatch tree (#2287) 2022-03-19 02:40:33 -07:00
Alex Guteniev d15bda27d5
Misc untag dispatch: is_permutation, sample, rethrow_if_nested, default_searcher (#2219)
Co-authored-by: Michael Schellenberger Costa <mschellenbergercosta@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
Co-authored-by: Casey Carter <Casey@Carter.net>
2022-03-19 02:36:13 -07:00
Stephan T. Lavavej 874d1f088d
Toolset update: VS 2022 17.2 Preview 2 (#2611) 2022-03-19 02:22:21 -07:00
Igor Zhukov 430bb0a108
Implement P2273R3 `constexpr` `unique_ptr` (#2582)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2022-03-16 22:54:01 -07:00
Casey Carter 18b3c67fd5
Orphan before reallocation in vector<👻> (#2441)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-03-16 22:47:36 -07:00
Igor Zhukov e6fa258e58
Implement LWG-3571 and LWG-3570: `flush_emit` set `badbit` if the `emit` call fails (#2418)
Co-authored-by: Michael Schellenberger Costa <mschellenbergercosta@gmail.com>
Co-authored-by: Matt Stephanson <stephanson.matt@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
Co-authored-by: Charlie Barto <chbarto@microsoft.com>
2022-03-16 22:43:08 -07:00
S. B. Tam add440116b
Implement P2443R1 views::chunk_by (#2565)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-03-14 16:27:24 -07:00
Casey Carter 4bb41db3d8
format (and friends) should reject volatile arguments (#2579) 2022-03-04 14:52:36 -08:00
Casey Carter 598cdfa7fd
Don't move from contained value of `optional<const T>` (#2460)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-03-04 14:23:10 -08:00
Oren Cohen 03122ed0c8
Update month to March 2022 (#2602) 2022-03-03 20:03:47 -08:00
Mital Ashok 38ddb14c63
Allow promises to be constructed for non-default-constructible types (#2568)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2022-03-03 19:59:21 -08:00
Igor Zhukov dafa1dd5fa
Implement LWG-3648: `format` should not print `bool` with `'c'` (#2587)
Co-authored-by: Casey Carter <Casey@Carter.net>
2022-03-02 12:34:52 -08:00
Igor Zhukov 824def4af3
Implement LWG-3612: Inconsistent pointer alignment in std::format (#2586) 2022-03-02 12:27:20 -08:00
Alex Guteniev 9fe98e09c8
Untag dispatch string constructor (#2480) 2022-03-02 12:10:43 -08:00
Alex Guteniev 42caa916a0
Untag dispatch _Directory_iterator (#2478)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-03-02 12:04:29 -08:00
Stephan T. Lavavej 89d50c5996
`<charconv>`: Fix `from_chars()` `float` tiebreaking (#2366) 2022-02-22 16:12:38 -08:00
Igor Zhukov 7b2c54be01
Speculatively implement LWG-3636: `formatter<T>::format` should be const-qualified (#2573)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-02-17 18:21:39 -08:00
Charlie Barto 113cb97b76
`<format>`: fix single byte out of bounds access (#2569) 2022-02-17 18:15:36 -08:00
Igor Zhukov b92f2c8e69
implement LWG-3471: `polymorphic_allocator::allocate` does not satisfy Cpp17Allocator requirements (#2567)
Co-authored-by: A. Jiang <de34@live.cn>
Co-authored-by: timsong-cpp <rs2740@gmail.com>
2022-02-17 18:12:33 -08:00
Igor Zhukov 05ac0a5dfb
Implement LWG-3618 Unnecessary `iter_move` for `transform_view::iterator` (#2566)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-02-17 18:09:30 -08:00
A. Jiang 7671576afb
Implement LWG-3657 `std::hash<std::filesystem::path>` is not enabled (#2564) 2022-02-17 18:06:49 -08:00
Igor Zhukov 202e42a96a
Implement LWG-3598 `system_category().default_error_condition(0)` (#2560) 2022-02-17 18:00:50 -08:00
Casey Carter 4ca712bc41
Update LLVM from upstream, fix bugs (#2499) 2022-02-17 01:16:50 -08:00
Casey Carter afe0800cd6
Update `__cpp_lib_concepts` (#2559) 2022-02-11 19:04:04 -08:00
Casey Carter 6a478bf348
Implement LWG-3660 for `iterator_traits<common_iterator>::pointer` (#2549) 2022-02-11 18:59:02 -08:00
Casey Carter fbc92af8eb
"Implement" LWG-3632 by commenting `unique_ptr` CTAD (#2548) 2022-02-11 18:52:32 -08:00
Igor Zhukov 5b5634f828
LWG-3661: `constinit` `atomic<shared_ptr<T>>` a(nullptr); should work (#2544)
Co-authored-by: Michael Schellenberger Costa <mschellenbergercosta@gmail.com>
2022-02-11 18:49:27 -08:00
S. B. Tam e472b13ed2
LWG-3621 Remove feature-test macro `__cpp_lib_monadic_optional` (#2543) 2022-02-11 18:46:59 -08:00
A. Jiang 3f5b8ff0cd
LWG-3610: `iota_view::size` sometimes rejects integer-class types (#2542)
Co-authored-by: Casey Carter <cartec69@gmail.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-02-11 18:44:07 -08:00
Casey Carter 624b2ae40c
P2393R1 Cleaning Up Integer-Class Types (#2541) 2022-02-11 18:30:27 -08:00
Igor Zhukov 06d094a655
LWG-3654: `basic_format_context::arg(size_t)` should be noexcept (#2528) 2022-02-11 18:26:30 -08:00
Alex Guteniev b6b9778858
P0627R6: Function to mark unreachable code (#2526)
Co-authored-by: Casey Carter <cartec69@gmail.com>
2022-02-11 18:22:10 -08:00
Igor Zhukov 8096a27550
resize_and_overwrite: fix warning C4018 (#2525)
Co-authored-by: PowerGamer1 <PowerGamer1@users.noreply.github.com>
2022-02-11 18:07:05 -08:00
Stephan T. Lavavej bb0cdf6c22
Fix and test deduplicated header units (#2516) 2022-02-11 17:55:27 -08:00
Casey Carter bbd5dbaa61
Speculatively implement LWG-3664 (#2522)
to fix a regression when calling `ranges::distance` with array arguments which _should_ decay to pointers. While we're here, let's merge `distance(i, s)` overloads and use `if constexpr` dispatch instead of concept overloading.

Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-02-07 11:54:49 -08:00
Ritik Rawal ee6a79e4ca
Update _MSVC_STL_UPDATE for 2022-02 (#2519) 2022-02-07 11:49:58 -08:00
Casey Carter 53d4f93525
Move `<ranges>` and `<format>` into C++20 (#2518)
* In `<yvals_core.h>`, don't require `_HAS_CXX23` to define `__cpp_lib_format` and `__cpp_lib_ranges`. Change the feature-test macro test consistently.

* Change test matrices for all tests that touch `<ranges>` and `<format>` to run in 20 mode instead of latest-only.

* Don't use the `span` constructor added by P1989 to C++23 in `P0896R4_views_split`, which now must run in c++20 mode where that constructor is unavailable.

Fixes #1814.

* Implement `__msvc_int128.hpp` to complete WG21-P1522 and provide integer-class types `_Signed128` and `_Unsigned128` to be the distance / size types of `iota_view<64-bit integral>`.
2022-02-07 11:36:22 -08:00
S. B. Tam 823dbe3b44
Rearrange feature test macros (#2510)
And don't bother to check `_DOWNLEVEL_COROUTINES_SUPPORTED` which equivalent to `__cpp_impl_coroutine`.

Fixes #2135.
2022-02-07 11:30:40 -08:00
Matt Stephanson a3b2a891af
constexpr all the generate_canonical parameters (#2498)
...up to 64 bits of entropy. Leave the original implementation for
more bits and naughty generators (I'm looking at you, tr1) whose
`min` and `max` functions aren't static.

Fixes #1964.
2022-02-07 11:23:45 -08:00