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

1180 Коммитов

Автор SHA1 Сообщение Дата
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
Stephan T. Lavavej 5aae678023
Avoid `<atomic>` in `filesystem.cpp` (#3011) 2022-08-09 03:19:57 -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
Igor Zhukov b491ec6c40
Map more Windows System errors (#2899) 2022-07-27 19:18:23 -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
Igor Zhukov 0f47cb72cf
Include <cmeow> instead of <meow.h>, Part 2 (#2852)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-07-20 17:15:26 -07:00
Charlie Barto 97b476c17f
<atomic> refactoring to support C11 (#2846) 2022-07-20 16:33:45 -07:00
Eugene d066aef441
Update filesystem library to use GetTempPath2 on Windows 11 (#2302)
Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2022-07-20 16:25:53 -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
Stephan T. Lavavej 658a04ba1f
`winapisupp.cpp`: Dramatically shrink the function pointer table (#2841) 2022-07-11 17:08:58 -07:00
Alikhalesi a4dc8a7110
<yvals_core.h>: Update _MSVC_STL_UPDATE to July 2022 (#2840) 2022-07-11 17:05:32 -07:00
Stephan T. Lavavej 2e59c27487
`syserror.cpp`: Assert that `_Win_errtab` is sorted and unique (#2837)
Co-authored-by: Casey Carter <Casey@Carter.net>
2022-07-11 16:59:22 -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
Anju del Moral Gonzalez 332154b803
Adding mutex, ranges, functional, any and format visualizers (#2191)
Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
2022-07-11 16:27:04 -07:00
Gregg Miskelly 0620026441
.natvis: Add view for unique_ptr/vector of chars (#2843) 2022-07-07 18:33:15 -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
nicole mazzuca 088818bf44
[benchmark] add gbenchmark (#2780)
Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
Co-authored-by: Casey Carter <cartec69@gmail.com>
2022-06-30 19:14:34 -07:00
Rose c176c155a5
Improve filesystem file resizing (#2771)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-06-30 19:02:35 -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 4e3fb31470
syserror.cpp: add more matches against std::errc::timed_out (#2744) 2022-06-30 18:54:28 -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
Igor Zhukov ad80eb79ba
add a visualizer for `_Ref_count_obj_alloc3` and `_Ref_count_obj2` (#2811)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
Co-authored-by: Casey Carter <cartec69@gmail.com>
2022-06-25 16:46:56 -07:00
Igor Zhukov 6c82314e1f
drop VC 2013 visualizers (#2804) 2022-06-25 16:09:06 -07:00
Igor Zhukov b23ecba48f
fix hash_* visualizer issue (#2784) 2022-06-25 16:04:00 -07:00
Stephan T. Lavavej 62276be707
Fix vectorized `min/max/minmax_element` for 64-bit types on x86 (#2821)
Co-authored-by: Alex Guteniev <gutenev@gmail.com>
2022-06-25 16:00:24 -07:00
Alex Guteniev 89b7b1254a
Don't get thread exit code as we don't care anyway (#2820)
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-06-25 15:57:10 -07:00
Alex Guteniev be74e53d83
New BOOL rules (#2815) 2022-06-25 15:28:48 -07:00
nicole mazzuca bda3b9aa61
fix analyze in CI (#2812)
Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-06-25 15:21:09 -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 7f04137880
Delete unused, non-exported xmath machinery (#2798) 2022-06-19 18:07: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 5e7cac7f67
Various source cleanups, especially `ushMEOW.cpp` and `fiopen.cpp` (#2801) 2022-06-19 17:39:52 -07:00
Stephan T. Lavavej 06e0755c74
P1328R1 `constexpr` `type_info::operator==()` (#2793) 2022-06-19 17:19:57 -07:00
Alex Guteniev 351efb0999
Atomic wait: zero-initialize wait list head (#2781)
Co-authored-by: Michael Schellenberger Costa <mschellenbergercosta@gmail.com>
Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
2022-06-19 17:14:25 -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
Stephan T. Lavavej 17fde2cbab
Mirror MSBuild changes (#2753) 2022-06-02 12:59:55 -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
nicole mazzuca 7342fbad12
[aliasobj] just build the alias objects once (#2743)
Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-06-01 17:43:27 -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
Charlie Barto 60decd0d82
Avoid an assertion failure in alias.asm (#2738)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2022-05-24 23:16:51 -07:00
Charlie Barto fc9232d807
Add an alias object to the import lib (#2734)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2022-05-23 18:36:43 -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
Igor Zhukov ef905a528c
STL.natvis: add specializations for `shared_ptr<void>`, `weak_ptr<void>`, and `unique_ptr<void, deleter>` (#2706) 2022-05-23 17:31:44 -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
nicole mazzuca 1a20fe1133
[copy_file] allow `FILE_SHARE_*` (#2718)
Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
2022-05-16 21:43:25 -07:00
nicole mazzuca 1134982467
[filesystem] Don't error on weird system files (#2715)
Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
2022-05-16 21:38:58 -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
Casey Carter 313aa59322
Remove unnecessary copy of _clr DLLS from internal build (#2717)
Doesn't affect the OSS build at all.

Mirror of MSVC-PR-398691
2022-05-12 18:00:39 -07:00
Stephan T. Lavavej a12e73c1f7
Toolset update: VS 2022 17.3 Preview 1 (#2714) 2022-05-12 13:36:47 -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 0343561835
`<filesystem>`: `__std_fs_get_stats` should work on FAT32 (#2373) 2022-05-05 02:08:28 -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
Igor Zhukov fa51112a5a
<system_error>: explicitly pass the system locale ID for system_category messages (#2669) 2022-05-01 03:20:16 -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
Scott Jones 80ebe871c7
Coordinated fix for capturing continuation context for tasks in Desktop apps (#2654)
Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
2022-04-14 23:10:39 -07:00
Eleni Partakki 52505b9d32
Update `_MSVC_STL_UPDATE` (#2634) 2022-04-04 13:49:57 -07:00