fix(sort): capture asc in std::sort lambda in TestSelectWithNaNForType #3366
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.36) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 197 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.316
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3366"
general
weight: 0.35
jan-wassenberg
Summary
This PR resolves two MSVC compilation errors affecting Highway:
1.
sort_test.ccerror C3493:In
TestSelectWithNaNForType, the custom comparator lambda forstd::sortreferences the localconstexpr bool asc, but used an empty capture[]. On MSVC conforming mode, this triggers:Fix: Explicitly capture
[asc].2.
sorting_networks-inl.handx86_128-inl.herror C2039:In
hwy/contrib/sort/sorting_networks-inl.h, the#else(!VQSORT_ENABLED) block was wrapped in a nestednamespace detail { ... }while already insidenamespace detail. This created a nestedhwy::N_SSSE3::detail::detailnamespace.Inside
hwy/ops/x86_128-inl.h(andloongarch_lsx-inl.h,ppc_vsx-inl.h),CompressBitsandCompressNotBitsinsidenamespace detailcalleddetail::IndicesFromBits128(...). Under MSVC two-phase name lookup,detail::resolved todetail::detailand failed with:Fix: Remove the redundant nested
namespace detailinsorting_networks-inl.hand remove the redundantdetail::qualifiers onIndicesFromBits128/IndicesFromNotBits128insidenamespace detail.Testing
Releaseconfig) ofhwy_contrib,sort_test, andcopy_test.sort_test.exe(35 test suites) andcopy_test.exeacross AVX2, SSE4, SSSE3, SSE2, EMU128 - all passed with 0 errors.