This PR implements modified ziggurat algorithm for normal_distribution, based on McFarland, C. D. (2015). A modified ziggurat algorithm for generating exponentially and normally distributed pseudorandom numbers. The main differences…
Towards #5971. This optimizes greedy multi-character loops further by using a specialized algorithm for this purpose and moving the branching on icase and collate mode out of the main loop. This change also allowed me to merge the…
Overview This overhauls independent_bits_engine to compute its values at compile-time, avoiding the need to do any significant work in the constructor, and making the function call operator observably more efficient (because the values are…
Towards #5971. This accelerates greedy single-character loops (a* and similar). To find the extent of the initial range that a* matches, we have to find the first character that is not a. For the icase and collate modes, we can naturally…
Follow-up to #6464. To ensure appropriate backtracking, #6464 introduced common scaffolding for special greedy loops that pushes the stack frames for appropriate backtracking. For the first frame, it chooses between four different…
Towards #5971. This speeds up .* and similar greedy wildcard loops, delegating the search for the first non-matching character to std::find() or std::find_first_of() to enable vectorization when available. While the speedups are…
Towards #5971. This adds optimized special-case handling for subpatterns such as a*, (?:ab)* and similar. There is further room for optimization of this case (e.g., we could move up some branching in _Compare_translate_left or special-case…
Resolves #6405. std::_Signed128::operator* in perform sign-normalizes before multiplying, but it is unnecessary and will cause performance issue. The low 128 bits of a two's-complement product equal the unsigned product, so the sign…
This PR adds an SVE implementation of find_first_of for AArch64 machines which implement SVE2. Benchmark results: (Measured on a Neoverse N2 Machine) Benchmark Speedup ------: bm /2/3 0.988x bm /6/81 0.992x bm /7/4 0.988x bm /9/3 1.090x bm…
This PR adds SVE implementations of unique, unique_copy. It also adds some explicit template keywords in the remove implementation, in order to fix compilation with other (non-MSVC) compilers. Benchmark results: Function Speedup ------: u…
This shipped in VS 2026 18.6. Removed non-Standard features: TR1, including the std::tr1 namespace, the old array::assign() member function, the old engines, and the old distributions uniform_int and uniform_real. #5763 + Deprecated since VS 2017 15.5 in December 2017. and . #5764 + Deprecated since VS 2015 in July…
This PR implements modified ziggurat algorithm for normal_distribution, based on McFarland, C. D. (2015). A modified ziggurat algorithm for generating exponentially and normally distributed pseudorandom numbers. The main differences…
Why it matters: Microsoft STL is in Language & Toolchain (one of your focus areas).
Add SVE implementations of unique, unique_copy; Add SVE2 implementations of find_first_of for 1-byte and 2-byte elements; : optimize _Signed128::operator* with a branchless multiply; : Accelerate greedy loops over fixed strings
Why it matters: Microsoft STL is in Language & Toolchain (one of your focus areas).
This shipped in VS 2026 18.6. Removed non-Standard features: TR1, including the std::tr1 namespace, the old array::assign() member function, the old engines, and the old distributions uniform_int and uniform_real. #5763 + Deprecated since VS 2017 15.5 in December 2017. and . #5764 + Deprecated…
Why it matters: First release in 7 months. Microsoft STL is in Language & Toolchain (one of your focus areas).
This shipped in VS 2026 18.6. Removed non-Standard features: TR1, including the std::tr1 namespace, the old array::assign() member function, the old engines, and the old distributions uniform_int and uniform_real. #5763 + Deprecated since VS 2017 15.5 in December 2017. and . #5764 + Deprecated since VS 2015 in July…
This shipped in VS 2026 18.0. The STL no longer supports targeting Windows 7 / Server 2008 R2, Windows 8 / Server 2012, and Windows 8.1 / Server 2012 R2: Improved the performance of system_clock::now() and atomic::wait() by directly calling APIs that were added in Windows 8. #5432 #5496 Improved the performance of STL…
Merged C++26 features: P3323R1 #5213 Forbid atomic , Specify atomic_ref Merged *partial* C++26 features: P3471R4 #5274 Standard Library Hardening + Currently disabled by default. + This can be enabled (for any Standard mode) by defining _MSVC_STL_HARDENING to 1 project-wide. + As C++26 Contracts are not yet…
Merged C++26 features: P0952R2 #4740 #4850 A New Specification For generate_canonical() P2407R5 #4743 Freestanding Library: Partial Classes P2833R2 #4743 Freestanding Library: inout expected span P2968R2 #4777 Make std::ignore A First-Class Object P2997R1 #4816 Removing The Common Reference Requirement From The…
Merged C++23 features: P1467R9 #3583 Extended Floating-Point Types + *Note:* This means that we provide the header containing an empty namespace std {}, as we don't support any optional extended floating-point types. P2093R14 #3337 : Formatted Output + P2539R4 Synchronizing print() With The Underlying Stream P2164R9…
`<algorithm>`: `ranges::min`, `ranges::max` and `ranges::minmax` evaluate each element twice
Describe the bug std::ranges::min/max/minmax over a views::transform range invoke the transform roughly twice per element. libstdc++ invokes it once, and libc++'s count depends on the data. Since these overloads return range_value_t by value and are constrained on indirectly_copyable_storable, one evaluation per element appears to be permitted. Command-line test case // cl /EHsc /std:c++latest /O2 repro.cpp #include #include #include #include int calls = 0; struct Entry { double v; double get() const { ++calls; return v; } }; int main() { std::vector data; for (int i = 1; i (i)}); calls = 0;…
70score
cpp20performancetesting
Demandweight 25% × value 0.39 = 9.8 pts0 reactions, 6 comments; labelled as performance/regression/priorityTechnical fitweight 30% × value 0.88 = 26.3 ptsMicrosoft STL is in Language & Toolchain (a focus area); issue needs cpp20, performance, which you listed; project tags you follow: cpp20Maintainer engagementweight 25% × value 0.90 = 22.5 ptsa maintainer commented; labelled (triaged); project responsiveness 60%Feasibilityweight 20% × value 0.55 = 11.0 ptsclear scope; has reproduction steps; has code; project onboarding 50%
Technical fit30% × 0.88 = 26Microsoft STL is in Language & Toolchain (a focus area); issue needs cpp20, performance, which you listed; project tags you follow: cpp20
Describe the bug std::ranges::min/max/minmax over a views::transform range invoke the transform roughly twice per element. libstdc++ invokes it once, and libc++'s count depends on the data. Since these overloads return range_value_t by value and are constrained on…
I'd want to understand what scenarios copying iterators vs. copying elements is faster. The current heuristic requires sizeof(_It) ) (plus trivially copyable conditions), i.e. with 8-byte iterators, 4-byte+ elements are large enough to prefer iterator copies. That surprised me…
Suggested first step
Reproduce the benchmark or slow path, profile it (perf, VTune or Tracy), and share the numbers on the issue before proposing a change.
<fstream>: Poor fstream performance on large files
Describe the bug Reading large files is very slow using ifstream, mainly if it's in storage with low IOPS, making it unusable in VMs or reading files from a network share. The main problem is that files are read in small 4KB chunks, regardless of the buffer size that you write it into. Capturing the syscalls with drstrace or sysinternals shows STL calling ReadFile repeatedly with 4KB reads, even when I pass it a GB sized buffer to write into. Looking into the source code I believe these are the problematic functions (though I didn't try fixing it myself): , which run with bufferSize = 4096.…
57score
performancestorage
Demandweight 25% × value 0.59 = 14.8 pts4 reactions, 1 comments; labelled as performance/regression/priorityTechnical fitweight 30% × value 0.73 = 22.1 ptsMicrosoft STL is in Language & Toolchain (a focus area); issue needs performance, which you listed; project tags you follow: cpp20Maintainer engagementweight 25% × value 0.35 = 8.7 ptscomments not checked; labelled (triaged); project responsiveness 60%Feasibilityweight 20% × value 0.55 = 11.0 ptsclear scope; has reproduction steps; has code; project onboarding 50%
Technical fit30% × 0.73 = 22Microsoft STL is in Language & Toolchain (a focus area); issue needs performance, which you listed; project tags you follow: cpp20
Describe the bug Reading large files is very slow using ifstream, mainly if it's in storage with low IOPS, making it unusable in VMs or reading files from a network share. The main problem is that files are read in small 4KB chunks, regardless of the buffer size that you write…
Suggested first step
Reproduce the benchmark or slow path, profile it (perf, VTune or Tracy), and share the numbers on the issue before proposing a change.
`<sstream>`: basic_stringbuf C++20 constructors call _Getal()/_Release_to_buffer() breaks user specializations of basic_string
Command-line test case #include #include namespace std { template<> class basic_string { /* minimal impl */ }; } // Triggers C2039: '_Getal' is not a member of std::basic_string std::basic_istringstream s; With /std:c++20, including and using std::basic_istringstream where std::basic_string is explicitly specialized produces: C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.44.35207\include\sstream(50): error C2039: "_Getal" ist kein Member von "std::basic_string ,std::allocator >". Siehe Deklaration von "std::basic_string ,std::allocator >" The C++20 constructor…
56score
cpp20memorytemplatestestingwindows
Technical fitweight 30% × value 0.73 = 22.1 ptsMicrosoft STL is in Language & Toolchain (a focus area); issue needs cpp20, which you listed; project tags you follow: cpp20Maintainer engagementweight 25% × value 0.90 = 22.5 ptsa maintainer commented; labelled (triaged); project responsiveness 60%Feasibilityweight 20% × value 0.55 = 11.0 ptsclear scope; has reproduction steps; has code; project onboarding 50%
Technical fit30% × 0.73 = 22Microsoft STL is in Language & Toolchain (a focus area); issue needs cpp20, which you listed; project tags you follow: cpp20
Command-line test case #include #include namespace std { template<> class basic_string { /* minimal impl */ }; } // Triggers C2039: '_Getal' is not a member of std::basic_string std::basic_istringstream s; With /std:c++20, including and using std::basic_istringstream where…
That sounds right to me, labeling as vNext. This is a bug although I regard it as a low-priority one (user specializations of Standard types, *especially* chonkers like basic_string, are rare; this is most commonly seen with the tiny ones like less and hash).
Suggested first step
Reproduce the bug on the latest main branch of Microsoft STL, reduce it to a minimal example, and post your findings on the issue before opening a PR.
`<ranges>`: `_(Add|Mul)_overflow` could be much faster
New functions (added by #3561) _Add_overflow and _Multiply_overflow could be much faster when Int is: Standard integer type. MSVC should consider implementing Clang's checked arithmetic builtins (__builtin_add_overflow and __builtin_mul_overflow). This would vastly improve performance and codegen. Also tracked by DevCom-10326281. Integer-class type. I believe that it is possible to implement those checked operations directly in _Signed128 and _Unsigned128, for example by modifying already existing functions (overflow could be detected during addition/multiplication?). This requires further…
55score
compilerscpp20docsperformancewindows
Demandweight 25% × value 0.58 = 14.5 pts3 reactions, 2 comments; labelled as performance/regression/priorityTechnical fitweight 30% × value 0.88 = 26.3 ptsMicrosoft STL is in Language & Toolchain (a focus area); issue needs cpp20, performance, which you listed; project tags you follow: cpp20Maintainer engagementweight 25% × value 0.36 = 8.9 ptscomments not checked; labelled (triaged); project responsiveness 63%Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; project onboarding 50%
Technical fit30% × 0.88 = 26Microsoft STL is in Language & Toolchain (a focus area); issue needs cpp20, performance, which you listed; project tags you follow: cpp20
New functions (added by #3561) _Add_overflow and _Multiply_overflow could be much faster when Int is: Standard integer type. MSVC should consider implementing Clang's checked arithmetic builtins (__builtin_add_overflow and __builtin_mul_overflow). This would vastly improve…
Suggested first step
Reproduce the benchmark or slow path, profile it (perf, VTune or Tracy), and share the numbers on the issue before proposing a change.
`<algorithm>`: Manually vectorised implementations of algorithms can be much slower than the basic implementation
Describe the bug std::max({value1, value2, value3}) (at least with double values) is much slower than std::max(value1, std::max(value2, value3)). The explicitly-vectorised implementation described here is called with the initialiser list, which means function call overhead, possibly some dispatching to a variant of the function with the best vector instructions for the ISA extensions present on the CPU, and presumably eventually gets to the 'last three' elements and uses a non-vectorised implementation to deal with them. As it's a fixed size at a compile time, picking the variant based on the…
54score
performancesimdtemplates
Demandweight 25% × value 0.33 = 8.2 pts0 reactions, 2 comments; labelled as performance/regression/priorityTechnical fitweight 30% × value 0.88 = 26.3 ptsMicrosoft STL is in Language & Toolchain (a focus area); issue needs performance, simd, which you listed; project tags you follow: cpp20Maintainer engagementweight 25% × value 0.35 = 8.7 ptscomments not checked; labelled (triaged); project responsiveness 60%Feasibilityweight 20% × value 0.55 = 11.0 ptsclear scope; has reproduction steps; has code; project onboarding 50%
Technical fit30% × 0.88 = 26Microsoft STL is in Language & Toolchain (a focus area); issue needs performance, simd, which you listed; project tags you follow: cpp20
Describe the bug std::max({value1, value2, value3}) (at least with double values) is much slower than std::max(value1, std::max(value2, value3)). The explicitly-vectorised implementation described here is called with the initialiser list, which means function call overhead…
Suggested first step
Reproduce the benchmark or slow path, profile it (perf, VTune or Tracy), and share the numbers on the issue before proposing a change.
`<functional>`: Avoid double wrapping in `move_only_function` construction
WG21-P2548R6 relaxed some requirements for polymorphic function wrappers by adding wording in [[func.wrap.general]]( 2. Let t be an object of a type that is a specialization of function, copyable_function, or move_only_function, such that the target object x of t has a type that is a specialization of function, copyable_function, or move_only_function. Each argument of the invocation of x evaluated as part of the invocation of t may alias an argument in the same position in the invocation of t that has the same type, even if the corresponding parameter is not of reference type. _Example 1_:…
51score
performance
Demandweight 25% × value 0.53 = 13.4 pts1 reactions, 8 comments; labelled as performance/regression/priorityTechnical fitweight 30% × value 0.73 = 22.1 ptsMicrosoft STL is in Language & Toolchain (a focus area); issue needs performance, which you listed; project tags you follow: cpp20Maintainer engagementweight 25% × value 0.20 = 5.0 ptscomments not checked; labelled (triaged)Feasibilityweight 20% × value 0.55 = 11.0 ptsclear scope; has reproduction steps; has code; project onboarding 50%
Technical fit30% × 0.73 = 22Microsoft STL is in Language & Toolchain (a focus area); issue needs performance, which you listed; project tags you follow: cpp20
Maintainer engagement25% × 0.20 = 5comments not checked; labelled (triaged)
Feasibility20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
WG21-P2548R6 relaxed some requirements for polymorphic function wrappers by adding wording in [[func.wrap.general]]( 2. Let t be an object of a type that is a specialization of function, copyable_function, or move_only_function, such that the target object x of t has a type…
Suggested first step
Reproduce the benchmark or slow path, profile it (perf, VTune or Tracy), and share the numbers on the issue before proposing a change.
I'm using std::round from _cmath_ header file. I want the __round intrinsic function to be used, but I could not find any function supporting just double parameter, there is only long double version which casts the parameter to double anyways. cpp _NODISCARD _Check_return_ inline long double round(_In_ long double _Xx) noexcept /* strengthened */ { #if _HAS_CMATH_INTRINSICS return __round(static_cast (_Xx)); #elif defined(__clang__) return __builtin_roundl(_Xx); #else // ^^^ defined(__clang__) / intrinsics unavailable vvv return _CSTD roundl(_Xx); #endif // ^^^ intrinsics unavailable ^^^ } To…
51score
performance
Demandweight 25% × value 0.35 = 8.8 pts0 reactions, 3 comments; labelled as performance/regression/priorityTechnical fitweight 30% × value 0.73 = 22.1 ptsMicrosoft STL is in Language & Toolchain (a focus area); issue needs performance, which you listed; project tags you follow: cpp20Maintainer engagementweight 25% × value 0.35 = 8.7 ptscomments not checked; labelled (triaged); project responsiveness 60%Feasibilityweight 20% × value 0.55 = 11.0 ptsclear scope; has reproduction steps; has code; project onboarding 50%
Technical fit30% × 0.73 = 22Microsoft STL is in Language & Toolchain (a focus area); issue needs performance, which you listed; project tags you follow: cpp20
I'm using std::round from _cmath_ header file. I want the __round intrinsic function to be used, but I could not find any function supporting just double parameter, there is only long double version which casts the parameter to double anyways. cpp _NODISCARD _Check_return_…
Suggested first step
Reproduce the benchmark or slow path, profile it (perf, VTune or Tracy), and share the numbers on the issue before proposing a change.
The NFA nodes of type _N_nop, _N_group and _N_end_group do not result in any changes to the match state in the matcher. However, processing them still requires some time. Going by the benchmarks in #5939, it seems about 2.5 ns are spent on my machine whenever when such a node is encountered by the matcher; see, e.g., the 37 % (relative) / 470 ns (absolute) increase in running time when matching the pattern (?:a)* to 100 a's compared to a*. Note that these NFA nodes do usually serve some purpose during regex parsing, so resolving this issue requires some careful changes to the parser logic.
50score
performance
Demandweight 25% × value 0.55 = 13.7 pts2 reactions, 3 comments; labelled as performance/regression/priorityTechnical fitweight 30% × value 0.73 = 22.1 ptsMicrosoft STL is in Language & Toolchain (a focus area); issue needs performance, which you listed; project tags you follow: cpp20Maintainer engagementweight 25% × value 0.35 = 8.7 ptscomments not checked; labelled (triaged); project responsiveness 60%Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; project onboarding 50%
Technical fit30% × 0.73 = 22Microsoft STL is in Language & Toolchain (a focus area); issue needs performance, which you listed; project tags you follow: cpp20
The NFA nodes of type _N_nop, _N_group and _N_end_group do not result in any changes to the match state in the matcher. However, processing them still requires some time. Going by the benchmarks in #5939, it seems about 2.5 ns are spent on my machine whenever when such a node…
Suggested first step
Reproduce the benchmark or slow path, profile it (perf, VTune or Tracy), and share the numbers on the issue before proposing a change.
`<chrono>`: `current_zone()` throws on "British Columbia" timezone added in October 2026 Windows updates
Describe the bug Several new timezones were added to Windows in October 2026, including "Pacific Time (British Columbia)": current_zone() throws on the new 'Pacific Time (British Columbia)' timezone Command-line test case PREREQUISITES: install Windows updates matching KB numbers on select "Pacific Time (British Columbia)" in Windows timezone settings PS C:\Users\fred> cat test.cpp #include #include int main() try { using namespace std::chrono; std::println("Retrieving timezone"); const auto tz = current_zone(); std::println("Retrieving timezone name"); const auto name = tz->name();…
49score
testingwindows
Technical fitweight 30% × value 0.53 = 15.8 ptsMicrosoft STL is in Language & Toolchain (a focus area); project tags you follow: cpp20Maintainer engagementweight 25% × value 0.90 = 22.5 ptsa maintainer commented; labelled (triaged); project responsiveness 60%Feasibilityweight 20% × value 0.55 = 11.0 ptsclear scope; has reproduction steps; has code; project onboarding 50%
Describe the bug Several new timezones were added to Windows in October 2026, including "Pacific Time (British Columbia)": current_zone() throws on the new 'Pacific Time (British Columbia)' timezone Command-line test case PREREQUISITES: install Windows updates matching KB…
Agreed, I don't believe there's anything the STL can do about this. The _entire reason_ we rely on ICU provided by the OS is that the STL cannot be in the business of dynamically updating timezones as legislation is passed around the world. The OS (via Windows Update) needs to…
Suggested first step
Reproduce the bug on the latest main branch of Microsoft STL, reduce it to a minimal example, and post your findings on the issue before opening a PR.
indicates that Clang 14 began supporting C++23 WG21-P1938R3 if consteval, and it's available as Future Technology in C++20 mode: For C1XX, MSVC-PR-598052 was merged on 2024-12-12 and will ship in VS 2022 17.14 Preview 1. It was implemented as Future Technology that we can access with a suppressible warning (C5282). Presumably this also goes back to C++20 but not earlier (haven't checked) as consteval became a keyword in C++20. For EDG in VS 2022 17.13 Preview 2, if consteval appears to be supported in C++23 mode, but C++20 mode emits a syntax error. (As EDG isn't a codegen compiler for us,…
49score
compilerscpp20templateswindows
Demandweight 25% × value 0.42 = 10.4 pts3 reactions, 9 commentsTechnical fitweight 30% × value 0.73 = 22.1 ptsMicrosoft STL is in Language & Toolchain (a focus area); issue needs cpp20, which you listed; project tags you follow: cpp20Maintainer engagementweight 25% × value 0.35 = 8.7 ptscomments not checked; filed by a maintainer; project responsiveness 60%Feasibilityweight 20% × value 0.40 = 8.0 ptsclear scope; has reproduction steps; project onboarding 50%
Demand25% × 0.42 = 103 reactions, 9 comments
Technical fit30% × 0.73 = 22Microsoft STL is in Language & Toolchain (a focus area); issue needs cpp20, which you listed; project tags you follow: cpp20
Maintainer engagement25% × 0.35 = 9comments not checked; filed by a maintainer; project responsiveness 60%
indicates that Clang 14 began supporting C++23 WG21-P1938R3 if consteval, and it's available as Future Technology in C++20 mode: For C1XX, MSVC-PR-598052 was merged on 2024-12-12 and will ship in VS 2022 17.14 Preview 1. It was implemented as Future Technology that we can…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
Provide AVX-512 implementations of vector algorithms
Currently, stl/src/vector_algorithms.cpp provides optimized implementations for SSE4.2 and AVX2; for example: AVX-512 might further increase performance. I'm marking this issue as until a maintainer (i.e. me) has AVX-512-capable hardware to verify benchmarks.
48score
docsperformancesimd
Demandweight 25% × value 0.33 = 8.2 pts0 reactions, 2 comments; labelled as performance/regression/priorityTechnical fitweight 30% × value 0.88 = 26.3 ptsMicrosoft STL is in Language & Toolchain (a focus area); issue needs performance, simd, which you listed; project tags you follow: cpp20Maintainer engagementweight 25% × value 0.35 = 8.7 ptscomments not checked; filed by a maintainer; project responsiveness 60%Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; project onboarding 50%
Technical fit30% × 0.88 = 26Microsoft STL is in Language & Toolchain (a focus area); issue needs performance, simd, which you listed; project tags you follow: cpp20
Maintainer engagement25% × 0.35 = 9comments not checked; filed by a maintainer; project responsiveness 60%
Currently, stl/src/vector_algorithms.cpp provides optimized implementations for SSE4.2 and AVX2; for example: AVX-512 might further increase performance. I'm marking this issue as until a maintainer (i.e. me) has AVX-512-capable hardware to verify benchmarks.
Suggested first step
Reproduce the benchmark or slow path, profile it (perf, VTune or Tracy), and share the numbers on the issue before proposing a change.
`<print>`: Investigate optimizing for UTF-8 terminals
At the November 2024 meeting, LWG-4044 "Confusing requirements for std::print on POSIX platforms" was resolved in the C++ Working Paper. In @CaseyCarter explained: There exist terminals that can only display Unicode via a "native Unicode API", and terminals that can display Unicode simply via the normal means of dumping output. The intent of the issue is that only the former require the determination if a stream refers to such a terminal, and require flushing the "normal" output before invoking such a "native Unicode API" to output Unicode. In real world terms, "native Unicode API" means…
48score
performance
Demandweight 25% × value 0.47 = 11.9 pts1 reactions, 3 comments; labelled as performance/regression/priorityTechnical fitweight 30% × value 0.73 = 22.1 ptsMicrosoft STL is in Language & Toolchain (a focus area); issue needs performance, which you listed; project tags you follow: cpp20Maintainer engagementweight 25% × value 0.35 = 8.7 ptscomments not checked; filed by a maintainer; project responsiveness 60%Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; project onboarding 50%
Technical fit30% × 0.73 = 22Microsoft STL is in Language & Toolchain (a focus area); issue needs performance, which you listed; project tags you follow: cpp20
Maintainer engagement25% × 0.35 = 9comments not checked; filed by a maintainer; project responsiveness 60%
At the November 2024 meeting, LWG-4044 "Confusing requirements for std::print on POSIX platforms" was resolved in the C++ Working Paper. In @CaseyCarter explained: There exist terminals that can only display Unicode via a "native Unicode API", and terminals that can display…
Suggested first step
Reproduce the benchmark or slow path, profile it (perf, VTune or Tracy), and share the numbers on the issue before proposing a change.
LWG-4490 Allow calling `std::ranges::size` in ranges algorithms
LWG-4490 Allow calling std::ranges::size in ranges algorithms It looks like we could indeed take advantage of this; from a brief glance at the implementation, _Get_final_iterator_unwrapped() appears to be relevant. I don't know whether other places would need to be modified.
47score
cpp20performance
Demandweight 25% × value 0.30 = 7.5 pts0 reactions, 1 comments; labelled as performance/regression/priorityTechnical fitweight 30% × value 0.88 = 26.3 ptsMicrosoft STL is in Language & Toolchain (a focus area); issue needs cpp20, performance, which you listed; project tags you follow: cpp20Maintainer engagementweight 25% × value 0.31 = 7.7 ptscomments not checked; filed by a maintainer; project responsiveness 44%Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; project onboarding 50%
Technical fit30% × 0.88 = 26Microsoft STL is in Language & Toolchain (a focus area); issue needs cpp20, performance, which you listed; project tags you follow: cpp20
Maintainer engagement25% × 0.31 = 8comments not checked; filed by a maintainer; project responsiveness 44%
LWG-4490 Allow calling std::ranges::size in ranges algorithms It looks like we could indeed take advantage of this; from a brief glance at the implementation, _Get_final_iterator_unwrapped() appears to be relevant. I don't know whether other places would need to be modified.
Suggested first step
Reproduce the benchmark or slow path, profile it (perf, VTune or Tracy), and share the numbers on the issue before proposing a change.
Instructions ============ libc++ has a new optional ABI where std::vector stores len and cap instead of pointers which yields significantly better results when hardening is enabled, and *"positive or neutral impact on run-time"* without hardening Adding a size-based vector to libc++’s unstable ABI tl;dr We can significantly improve the runtime performance of std::vector by changing its representation from three pointers to one pointer and two integers. This document explains the details of this change, along with the justifications for making it. There was but the benchmarks there were flawed…
46score
performance
Demandweight 25% × value 0.42 = 10.6 pts1 reactions, 1 comments; labelled as performance/regression/priorityTechnical fitweight 30% × value 0.73 = 22.1 ptsMicrosoft STL is in Language & Toolchain (a focus area); issue needs performance, which you listed; project tags you follow: cpp20Maintainer engagementweight 25% × value 0.35 = 8.7 ptsno maintainer comment yet; labelled (triaged); project responsiveness 60%Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; project onboarding 50%
Technical fit30% × 0.73 = 22Microsoft STL is in Language & Toolchain (a focus area); issue needs performance, which you listed; project tags you follow: cpp20
Instructions ============ libc++ has a new optional ABI where std::vector stores len and cap instead of pointers which yields significantly better results when hardening is enabled, and *"positive or neutral impact on run-time"* without hardening Adding a size-based vector to…
Suggested first step
Reproduce the benchmark or slow path, profile it (perf, VTune or Tracy), and share the numbers on the issue before proposing a change.
Describe the bug When using the MSVC compiler with /utf-8, std::println truncates overly long UTF-8 strings at internal buffer boundaries (replaced with U+FFFD replacement characters) when formatting arguments are used (std::println("{}", str)). Reproduction Code and Output cpp #include int main() { std::println("{}", "这是一段超长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长的文本。"); } Compilation Command: cl.exe /std:c++latest /utf-8 repro.cpp Compiler Version: 用于 x86 的 Microsoft (R) C/C++ 优化编译器 19.50.35718 版 Expected Behavior: The UTF-8 string is output…
46score
windows
Demandweight 25% × value 0.42 = 10.6 pts3 reactions, 10 commentsTechnical fitweight 30% × value 0.53 = 15.8 ptsMicrosoft STL is in Language & Toolchain (a focus area); project tags you follow: cpp20Maintainer engagementweight 25% × value 0.35 = 8.7 ptscomments not checked; labelled (triaged); project responsiveness 60%Feasibilityweight 20% × value 0.55 = 11.0 ptsclear scope; has reproduction steps; has code; project onboarding 50%
Demand25% × 0.42 = 113 reactions, 10 comments
Technical fit30% × 0.53 = 16Microsoft STL is in Language & Toolchain (a focus area); project tags you follow: cpp20
Describe the bug When using the MSVC compiler with /utf-8, std::println truncates overly long UTF-8 strings at internal buffer boundaries (replaced with U+FFFD replacement characters) when formatting arguments are used (std::println("{}", str)). Reproduction Code and Output cpp…
Suggested first step
Reproduce the bug on the latest main branch of Microsoft STL, reduce it to a minimal example, and post your findings on the issue before opening a PR.
Describe the bug As discovered by Copilot in MSVC STL's basic_string seems to lack iterator orphaning in erasing operations (pop_back, erase, and clear). It's unclear to me whether this is by design. At least the status of basic_string is inconsistent with vector. Command-line test case C++ #include #include #include #if _ITERATOR_DEBUG_LEVEL != 2 #error #endif // _ITERATOR_DEBUG_LEVEL != 2 constexpr bool test_string() { auto s = std::string{"The quick brown fox jumps over the lazy dog"}; auto it = s.cbegin(); auto jt = s.cbegin() + 10; s.erase(it + 5); return it == jt - 10; }…
46score
templatestestingwindows
Technical fitweight 30% × value 0.53 = 15.8 ptsMicrosoft STL is in Language & Toolchain (a focus area); project tags you follow: cpp20Maintainer engagementweight 25% × value 0.75 = 18.8 ptsa maintainer commented; labelled (triaged)Feasibilityweight 20% × value 0.55 = 11.0 ptsclear scope; has reproduction steps; has code; project onboarding 50%
Describe the bug As discovered by Copilot in MSVC STL's basic_string seems to lack iterator orphaning in erasing operations (pop_back, erase, and clear). It's unclear to me whether this is by design. At least the status of basic_string is inconsistent with vector. Command-line…
I believe this is a bug. The STL has always interpreted the iterator invalidation rules very strictly when implementing iterator debugging. If an iterator is technically invalidated, we orphan it, even if its underlying storage is still there and a raw pointer would have…
Suggested first step
Reproduce the bug on the latest main branch of Microsoft STL, reduce it to a minimal example, and post your findings on the issue before opening a PR.
`<algorithm>`: Investigate further optimizations for `shuffle()` and `sample()`
After seeing #5735, @lemire pointed me to Batched Ranged Random Integer Generation published in Aug 2024 by Nevin Brackett-Rozinsky and himself, which sounds very promising for the STL: Pseudorandom values are often generated as 64-bit binary words. These random words need to be converted into ranged values without statistical bias. We present an efficient algorithm to generate multiple independent uniformly-random bounded integers from a single uniformly-random binary word, without any bias. In the common case, our method uses one multiplication and no division operations per value produced.…
46score
performance
Demandweight 25% × value 0.37 = 9.2 pts0 reactions, 4 comments; labelled as performance/regression/priorityTechnical fitweight 30% × value 0.73 = 22.1 ptsMicrosoft STL is in Language & Toolchain (a focus area); issue needs performance, which you listed; project tags you follow: cpp20Maintainer engagementweight 25% × value 0.37 = 9.3 ptscomments not checked; filed by a maintainer; project responsiveness 69%Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; project onboarding 50%
Technical fit30% × 0.73 = 22Microsoft STL is in Language & Toolchain (a focus area); issue needs performance, which you listed; project tags you follow: cpp20
Maintainer engagement25% × 0.37 = 9comments not checked; filed by a maintainer; project responsiveness 69%
After seeing #5735, @lemire pointed me to Batched Ranged Random Integer Generation published in Aug 2024 by Nevin Brackett-Rozinsky and himself, which sounds very promising for the STL: Pseudorandom values are often generated as 64-bit binary words. These random words need to…
Suggested first step
Reproduce the benchmark or slow path, profile it (perf, VTune or Tracy), and share the numbers on the issue before proposing a change.
`<regex>`: Consider special-casing some simple loop structures
Currently, loops like a* or \d* go through the whole NFA state transition processing for each repetition, which slows down the handling of such loops a lot. I think it's probably worth it to recognize and special-case such simple and comonly used loop structures in the matcher. (But we should not add such special-case handling to non-simple loops and instead resolve #5957 to effectively extend the simple loop handling to branchless loops.)
45score
performance
Demandweight 25% × value 0.35 = 8.8 pts0 reactions, 3 comments; labelled as performance/regression/priorityTechnical fitweight 30% × value 0.73 = 22.1 ptsMicrosoft STL is in Language & Toolchain (a focus area); issue needs performance, which you listed; project tags you follow: cpp20Maintainer engagementweight 25% × value 0.35 = 8.7 ptscomments not checked; labelled (triaged); project responsiveness 60%Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; project onboarding 50%
Technical fit30% × 0.73 = 22Microsoft STL is in Language & Toolchain (a focus area); issue needs performance, which you listed; project tags you follow: cpp20
Currently, loops like a* or \d* go through the whole NFA state transition processing for each repetition, which slows down the handling of such loops a lot. I think it's probably worth it to recognize and special-case such simple and comonly used loop structures in the matcher…
Suggested first step
Reproduce the benchmark or slow path, profile it (perf, VTune or Tracy), and share the numbers on the issue before proposing a change.
There's DevCom-11056873 workaround The compiler issue has been fixed. The call to _Load_constant() and each its implementation can probably be safely replaced with vectors constructed from literals. But need to inspect codegen and/or run the benchmark to see if it is really fixed.
44score
compilersperformancesimd
Demandweight 25% × value 0.17 = 4.4 pts1 reactions, 1 commentsTechnical fitweight 30% × value 0.88 = 26.3 ptsMicrosoft STL is in Language & Toolchain (a focus area); issue needs performance, simd, which you listed; project tags you follow: cpp20Maintainer engagementweight 25% × value 0.35 = 8.7 ptsno maintainer comment yet; labelled (triaged); project responsiveness 60%Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; project onboarding 50%
Demand25% × 0.17 = 41 reactions, 1 comments
Technical fit30% × 0.88 = 26Microsoft STL is in Language & Toolchain (a focus area); issue needs performance, simd, which you listed; project tags you follow: cpp20
There's DevCom-11056873 workaround The compiler issue has been fixed. The call to _Load_constant() and each its implementation can probably be safely replaced with vectors constructed from literals. But need to inspect codegen and/or run the benchmark to see if it is really…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
`<cmath>`: `constexpr` `fpclassify()` rejects signaling NaNs on x86
I could probably work around this in the library by using a bit_cast, but it would be better for the compiler to fix this bug. D:\GitHub\STL\out\x86>cl Microsoft (R) C/C++ Optimizing Compiler Version 19.52.36725 for x86 (PREVIEW) Copyright (C) Microsoft Corporation. All rights reserved. usage: cl [ option... ] filename... [ /link linkoption... ] D:\GitHub\STL\out\x86>type meow.cpp cpp #include #include #include #ifndef _M_IX86 static_assert(false, "Use x86 to repro this failure!"); #endif constexpr bool test() { assert(std::fpclassify(std::numeric_limits ::signaling_NaN()) == FP_NAN); return…
42score
performancetemplatestesting
Technical fitweight 30% × value 0.73 = 22.1 ptsMicrosoft STL is in Language & Toolchain (a focus area); issue needs performance, which you listed; project tags you follow: cpp20Maintainer engagementweight 25% × value 0.35 = 8.7 ptscomments not checked; filed by a maintainer; project responsiveness 60%Feasibilityweight 20% × value 0.55 = 11.0 ptsclear scope; has reproduction steps; has code; project onboarding 50%
Technical fit30% × 0.73 = 22Microsoft STL is in Language & Toolchain (a focus area); issue needs performance, which you listed; project tags you follow: cpp20
Maintainer engagement25% × 0.35 = 9comments not checked; filed by a maintainer; project responsiveness 60%
Feasibility20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
I could probably work around this in the library by using a bit_cast, but it would be better for the compiler to fix this bug. D:\GitHub\STL\out\x86>cl Microsoft (R) C/C++ Optimizing Compiler Version 19.52.36725 for x86 (PREVIEW) Copyright (C) Microsoft Corporation. All rights…
Suggested first step
Reproduce the bug on the latest main branch of Microsoft STL, reduce it to a minimal example, and post your findings on the issue before opening a PR.
<regex>: regex_search() throws regex_error(error_complexity) when a long string is used with a lookahead regex
Describe the bug We a trying to upgrade the compiler to the latest MSVC version. First time we did hit this issue #5792. After it was fixed and new MSVC version published, we've upgraded again to 14.51 and now we are getting another issue, this time with regex_error(error_complexity) when a lookahead regex is being used with a really long search string. Note that if I make the path string shorter, everything is working good. While this might be an expected limitation, we didn't have issues with Visual Studio 2022. Also on Linux with GCC 13 this code is working properly. Command-line test case…
42score
linuxtestingwindows
Technical fitweight 30% × value 0.73 = 22.1 ptsMicrosoft STL is in Language & Toolchain (a focus area); issue needs linux, which you listed; project tags you follow: cpp20Maintainer engagementweight 25% × value 0.35 = 8.7 ptscomments not checked; labelled (triaged); project responsiveness 60%Feasibilityweight 20% × value 0.55 = 11.0 ptsclear scope; has reproduction steps; has code; project onboarding 50%
Technical fit30% × 0.73 = 22Microsoft STL is in Language & Toolchain (a focus area); issue needs linux, which you listed; project tags you follow: cpp20
Describe the bug We a trying to upgrade the compiler to the latest MSVC version. First time we did hit this issue #5792. After it was fixed and new MSVC version published, we've upgraded again to 14.51 and now we are getting another issue, this time with…
Suggested first step
Reproduce the bug on the latest main branch of Microsoft STL, reduce it to a minimal example, and post your findings on the issue before opening a PR.
`<experimental/coroutine>`, `<experimental/resumable>`, `<experimental/generator>` should be removed
We shipped C++23 in VS 2022 17.13 (#4953). It's time to deprecate and then remove , since we don't want to encourage users writing non-Standard code when superior replacements are available. (Additionally, early adopters of experimental machinery should know what they're signing up for and can reasonably be expected to be eager upgraders.) This will also avoid bugs in the experimental implementation like #4999. According to @CaseyCarter, generally has very similar behavior to except in weird corner cases.
40score
coroutinescpp20
Technical fitweight 30% × value 0.88 = 26.3 ptsMicrosoft STL is in Language & Toolchain (a focus area); issue needs coroutines, cpp20, which you listed; project tags you follow: cpp20Maintainer engagementweight 25% × value 0.35 = 8.7 ptscomments not checked; filed by a maintainer; project responsiveness 60%Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; project onboarding 50%
Technical fit30% × 0.88 = 26Microsoft STL is in Language & Toolchain (a focus area); issue needs coroutines, cpp20, which you listed; project tags you follow: cpp20
Maintainer engagement25% × 0.35 = 9comments not checked; filed by a maintainer; project responsiveness 60%
We shipped C++23 in VS 2022 17.13 (#4953). It's time to deprecate and then remove , since we don't want to encourage users writing non-Standard code when superior replacements are available. (Additionally, early adopters of experimental machinery should know what they're…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
This issue tracks Clang/LLVM bugs that we have workarounds for. We cite bugs as LLVM- using the redirector that maps old Bugzilla numbers to new GitHub numbers. I've listed the old citations here so we can easily search MSVC's STL. Open LLVM-15544 llvm/llvm-project#15916 LLVM-23106 llvm/llvm-project#23480 LLVM-35365 llvm/llvm-project#34713 LLVM-35450 llvm/llvm-project#34798 LLVM-37932 llvm/llvm-project#37280 LLVM-37969 llvm/llvm-project#37317 LLVM-38217 llvm/llvm-project#37565 LLVM-41915 llvm/llvm-project#41260 LLVM-44688 llvm/llvm-project#44033 LLVM-46207 llvm/llvm-project#45552 LLVM-46685…
40score
windows
Demandweight 25% × value 0.13 = 3.1 pts1 reactions, 0 commentsTechnical fitweight 30% × value 0.53 = 15.8 ptsMicrosoft STL is in Language & Toolchain (a focus area); project tags you follow: cpp20Maintainer engagementweight 25% × value 0.35 = 8.7 ptscomments not checked; filed by a maintainer; project responsiveness 60%Feasibilityweight 20% × value 0.60 = 12.0 ptsnewcomer label; clear scope; project onboarding 50%
Demand25% × 0.13 = 31 reactions, 0 comments
Technical fit30% × 0.53 = 16Microsoft STL is in Language & Toolchain (a focus area); project tags you follow: cpp20
Maintainer engagement25% × 0.35 = 9comments not checked; filed by a maintainer; project responsiveness 60%
This issue tracks Clang/LLVM bugs that we have workarounds for. We cite bugs as LLVM- using the redirector that maps old Bugzilla numbers to new GitHub numbers. I've listed the old citations here so we can easily search MSVC's STL. Open LLVM-15544 llvm/llvm-project#15916…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
Reported edgcpp/compiler#264 edgcpp/compiler#266 edgcpp/compiler#267 edgcpp/compiler#268 edgcpp/compiler#269 edgcpp/compiler#270 edgcpp/compiler#271 edgcpp/compiler#272 edgcpp/compiler#273 edgcpp/compiler#274 edgcpp/compiler#275 edgcpp/compiler#276 edgcpp/compiler#277 edgcpp/compiler#278 edgcpp/compiler#283 edgcpp/compiler#284 edgcpp/compiler#285 edgcpp/compiler#286 edgcpp/compiler#580 Need to report We have workarounds for the following bugs, which we should reduce to be library-free and report to the edgcpp/compiler repo. VSO-1951821 EDGcpfe/27063 EDG instantiates the wrong overload of…
37score
cpp20windows
Technical fitweight 30% × value 0.53 = 15.8 ptsMicrosoft STL is in Language & Toolchain (a focus area); project tags you follow: cpp20Maintainer engagementweight 25% × value 0.35 = 8.7 ptscomments not checked; filed by a maintainer; project responsiveness 60%Feasibilityweight 20% × value 0.60 = 12.0 ptsnewcomer label; clear scope; project onboarding 50%
`<filesystem>`: `std::filesystem::exists` returns false for path longer than 260 symbols
Describe the bug std::filesystem::exists returns false for an existing path longer than 260 characters and doesn't return an error (the error code is 0). Command-line test case C:\Temp>type repro.cpp #include #include #include #include #include #include #include int main() { // File name longer than 260 characters const std::filesystem::path filePath =…
36score
testing
Technical fitweight 30% × value 0.53 = 15.8 ptsMicrosoft STL is in Language & Toolchain (a focus area); project tags you follow: cpp20Maintainer engagementweight 25% × value 0.35 = 8.7 ptscomments not checked; labelled (triaged); project responsiveness 60%Feasibilityweight 20% × value 0.55 = 11.0 ptsclear scope; has reproduction steps; has code; project onboarding 50%
Describe the bug std::filesystem::exists returns false for an existing path longer than 260 characters and doesn't return an error (the error code is 0). Command-line test case C:\Temp>type repro.cpp #include #include #include #include #include #include #include int main() { //…
Suggested first step
Reproduce the bug on the latest main branch of Microsoft STL, reduce it to a minimal example, and post your findings on the issue before opening a PR.
Classes that use `[[no_unique_address]]` may have different layout depending on compiler used
As in title. Repro: c++ #include #include using namespace std; class DummyAccessor { public: using element_type = int; using reference = int; using offset_policy = DummyAccessor; struct data_handle_type {}; reference access(data_handle_type, size_t); data_handle_type offset(data_handle_type, size_t); }; class DummyIterator { public: using value_type = int; using difference_type = ptrdiff_t; DummyIterator() = default; DummyIterator &operator++(); DummyIterator operator++(int); value_type operator*() const; bool operator==(const DummyIterator &) const; }; using MDS = mdspan , layout_left,…
36score
cpp20windows
Technical fitweight 30% × value 0.53 = 15.8 ptsMicrosoft STL is in Language & Toolchain (a focus area); project tags you follow: cpp20Maintainer engagementweight 25% × value 0.35 = 8.7 ptscomments not checked; labelled (triaged); project responsiveness 60%Feasibilityweight 20% × value 0.55 = 11.0 ptsclear scope; has reproduction steps; has code; project onboarding 50%
As in title. Repro: c++ #include #include using namespace std; class DummyAccessor { public: using element_type = int; using reference = int; using offset_policy = DummyAccessor; struct data_handle_type {}; reference access(data_handle_type, size_t); data_handle_type…
Suggested first step
Reproduce the bug on the latest main branch of Microsoft STL, reduce it to a minimal example, and post your findings on the issue before opening a PR.
`<chrono>`: Improve exception messages when OS support is unavailable for time zones
Overview The STL's VS 2019 16.10 Changelog explained: While the STL generally provides all features on all supported versions of Windows, leap seconds and time zones (which change over time) require OS support that was added to Windows 10. Specifically, updating the leap second database requires Windows 10 version 1809 or later, and time zones require icu.dll which is provided by Windows 10 version 1903/19H1 or later. This applies to both client and server OSes; note that Windows Server 2019 is based on Windows 10 version 1809. When OS support is unavailable, we throw exceptions, as permitted…
35score
storagewindows
Demandweight 25% × value 0.33 = 8.3 pts3 reactions, 2 commentsTechnical fitweight 30% × value 0.53 = 15.8 ptsMicrosoft STL is in Language & Toolchain (a focus area); project tags you follow: cpp20Maintainer engagementweight 25% × value 0.37 = 9.3 ptscomments not checked; filed by a maintainer; project responsiveness 69%Feasibilityweight 20% × value 0.10 = 2.0 ptsproject onboarding 50%
Demand25% × 0.33 = 83 reactions, 2 comments
Technical fit30% × 0.53 = 16Microsoft STL is in Language & Toolchain (a focus area); project tags you follow: cpp20
Maintainer engagement25% × 0.37 = 9comments not checked; filed by a maintainer; project responsiveness 69%
Overview The STL's VS 2019 16.10 Changelog explained: While the STL generally provides all features on all supported versions of Windows, leap seconds and time zones (which change over time) require OS support that was added to Windows 10. Specifically, updating the leap second…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
`<system_error>`: `system_category()` maps `WSAECONNREFUSED` etc. onto `errc`, but not their `winerror.h` equivalents (`ERROR_CONNECTION_REFUSED`, `ERROR_NETNAME_DELETED`, ...)
Describe the bug system_category().default_error_condition() maps the Winsock network error codes onto the portable errc conditions, but not the winerror.h codes that Windows reports for the same failures. So whether ec == errc::connection_refused holds for a refused connection depends on which API reported it. The winerror.h codes are what overlapped I/O completions report: GetOverlappedResult / GetQueuedCompletionStatus translate the NTSTATUS with the usual NTSTATUS-to-Win32 mapping, so a ConnectEx to a closed port completes with ERROR_CONNECTION_REFUSED (not WSAECONNREFUSED), and a reset…
33score
windows
Technical fitweight 30% × value 0.53 = 15.8 ptsMicrosoft STL is in Language & Toolchain (a focus area); project tags you follow: cpp20Maintainer engagementweight 25% × value 0.35 = 8.7 ptscomments not checked; labelled (triaged); project responsiveness 60%Feasibilityweight 20% × value 0.40 = 8.0 ptshas reproduction steps; has code; project onboarding 50%
Demand25% × 0.00 = 00 reactions, 0 comments
Technical fit30% × 0.53 = 16Microsoft STL is in Language & Toolchain (a focus area); project tags you follow: cpp20
Describe the bug system_category().default_error_condition() maps the Winsock network error codes onto the portable errc conditions, but not the winerror.h codes that Windows reports for the same failures. So whether ec == errc::connection_refused holds for a refused connection…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
`<regex>`: `regex_search()` throws `regex_error(error_complexity)` with an unwisely written pattern
Related to #6347. This was reported by the compiler back-end team, reduced from an important test case. This was previously accepted (MSVC Build Tools 14.50 and earlier) with regex_search() returning false (the line has been deliberately changed to contain total_WOOF_pushes so total_heap_pushes won't be found). Now with MSVC Build Tools 14.51 and later, it is rejected with a complexity exception. D:\GitHub\STL\out\x64>type regex_repro.cpp cpp #include #include #include using namespace std; int main() { const regex rx(R"(.*total_heap_pushes\s*:\s*(\d+) .*)"); const string line = "Router Stats:…
33score
testingwindows
Technical fitweight 30% × value 0.53 = 15.8 ptsMicrosoft STL is in Language & Toolchain (a focus area); project tags you follow: cpp20Maintainer engagementweight 25% × value 0.35 = 8.7 ptscomments not checked; filed by a maintainer; project responsiveness 60%Feasibilityweight 20% × value 0.40 = 8.0 ptshas reproduction steps; has code; project onboarding 50%
Related to #6347. This was reported by the compiler back-end team, reduced from an important test case. This was previously accepted (MSVC Build Tools 14.50 and earlier) with regex_search() returning false (the line has been deliberately changed to contain total_WOOF_pushes so…
Suggested first step
Reproduce the bug on the latest main branch of Microsoft STL, reduce it to a minimal example, and post your findings on the issue before opening a PR.
`<filesystem>`: `weakly_canonical` fails with ERROR_ACCESS_DENIED inside Windows AppContainer
std::filesystem::weakly_canonical returns an error_code containing ERROR_ACCESS_DENIED (Win32 error 5) for any path inside a Windows AppContainer process, even when the AppContainer SID has been granted full ACL access on every directory in the path. The cause is in _Canonical (stl/inc/filesystem line ~3039): it calls GetFinalPathNameByHandleW(handle, ..., FILE_NAME_NORMALIZED VOLUME_NAME_DOS). The VOLUME_NAME_DOS flag requires the OS to query the Volume Mount Manager and the \GLOBAL?? Object Manager directory to translate the volume back to a drive letter. AppContainer tokens are denied…
33score
windows
Technical fitweight 30% × value 0.53 = 15.8 ptsMicrosoft STL is in Language & Toolchain (a focus area); project tags you follow: cpp20Maintainer engagementweight 25% × value 0.35 = 8.7 ptscomments not checked; labelled (triaged); project responsiveness 60%Feasibilityweight 20% × value 0.40 = 8.0 ptshas reproduction steps; has code; project onboarding 50%
std::filesystem::weakly_canonical returns an error_code containing ERROR_ACCESS_DENIED (Win32 error 5) for any path inside a Windows AppContainer process, even when the AppContainer SID has been granted full ACL access on every directory in the path. The cause is in _Canonical…
Suggested first step
Reproduce the bug on the latest main branch of Microsoft STL, reduce it to a minimal example, and post your findings on the issue before opening a PR.
◐Health 70◐Contribution friendliness 52computed 19h ago
Activity0.91
29 merged PRs in 30 days (full marks at 20); 29 commits in 30 days (full marks at 60)health
Onboarding0.50
has mainstream build (CMake/Bazel/Meson), CI; missing contributing guide, docs sitecontrib
Entry points0.46
2 open, unassigned good-first-issue/help-wanted issues without a PR (full marks at 10)contrib
Maintainer responsiveness0.59
median first maintainer response 176 h (full marks within 48 h, zero after 30 days); median PR merge time 194 h (full marks within 72 h, zero after 60 days)healthcontrib
Release cadence0.62
last release 152 days ago (full marks within 90, zero after 730); 1 releases in 365 days (full marks at 4)health
Backlog pressure0.00
87% of 276 scanned open issues are older than a year (full marks at <= 20%, zero at >= 80%)health
Contributor breadth0.90
16 unique contributors in 90 days (full marks at 25); top contributor has 31% of commits; stars count for at most 5% of this signalhealth
Each signal is normalized to 0–1 with fixed thresholds; scores are weighted sums × 100. Stars are not an input.
Recent issues and discussions in 12 tracked projects (Apache TVM, CCCL (Thrust, CUB, libcudacxx), Gazebo (gz-sim), Intel oneAPI DPC++ compiler (intel/llvm) and 8 more) mention “compile time”. This is an automatically detected signal, not a validated need.
The phrase appears in open issue titles of Asio, Charm++, Drogon, DuckDB and 19 more. Found automatically from title word pairs; read the threads before treating it as one problem.
C++23 is a published standard, but the cppreference support table shows not in libstdc++, libc++, MSVC STL. Implementation work, a portable polyfill, or a feature-test fallback are the options.