// newsletters

C++ Weekly: CMake 4.5 rc2, vcpkg October, pre-Búzios mailing

C++ Monthly · Nov 1, 2026

C++ Weekly: CMake 4.5 rc2, vcpkg October, pre-Búzios mailing

Mostly build tools this week. CMake and vcpkg both shipped, and Daniel Lemire put up two good low-level posts.

1. CMake 4.5 rc2 is out, and import std now works with C++20

Kitware posted the second release candidate for CMake 4.5 on Oct 28 and is asking people to test it.

According to the notes, import std is now available for all C++20 and later code when CXX_SCAN_FOR_MODULES is on. There are new install(SBOM) and export(SBOM) commands, and CMAKE_INSTALL_SBOM_FORMATS turns SBOM output on. Lots of commands now accept alias targets and act on the target behind the alias. ctest also gets an out-of-date option that only runs tests whose recorded build dependencies are newer.

The Visual Studio 14 2015 generator has been removed, so a CI job still using it will break on 4.5. If you're staying on 4.4, 4.4.5 came out Oct 29 with a few small fixes, including curl 8.21+ builds without a TLS backend and a FindPython check that went wrong when cross-compiling.

2. vcpkg's October update: Boost 1.92 and configurable cache compression

Augustin Popa's vcpkg roundup went up on the Microsoft C++ blog Oct 29. It covers the 2026-10-16 registry release and the 2026-09-26 tool release.

You can now set the binary cache compression level from 0 to 9, with a new command line option or the VCPKG_BINARY_CACHE_COMPRESSION_LEVEL variable. If you set neither, you get the same default as before, and the post says the level doesn't change package ABIs. They also fixed a bug where precheck results got attached to the wrong packages after filtering. Registry errors now show the actual cause instead of a misleading "does not exist".

Ports-wise, Boost moves from 1.91 to 1.92, curl to 8.23.0, OpenSSL to 3.6.5 and Qt Base to 6.11.2. The registry is at 2,877 ports, and 22 were removed in cleanup, including tensorflow, v8, sdl1 and threadpool. Worth checking that list before you move your baseline.

3. LLVM 23.1.4 released, 23.1.5 planned for Nov 3

This one is from a couple weeks back. Tobias Hieta announced LLVM 23.1.4 on Oct 20, covering clang, lld, libc++, MLIR and the other subprojects.

Sources are on GitHub, since the per-subproject tarballs are gone. Official binaries weren't ready at announcement time. Third-party binaries are linked, but the release managers didn't build or check those. The next point release, 23.1.5, is planned for Tuesday, November 3.

Separately, the US LLVM Developers' Meeting ran Oct 26 to 28 at the Santa Clara Marriott. There's no schedule or recordings on the meeting page yet.

4. WG21's pre-Búzios mailing is out ahead of the November meeting

The committee posted the 2026-10 pre-Búzios mailing on Oct 23, a couple of days before this issue's window starts. It's 18 MB of papers going into the next meeting.

Per the Brno minutes (N5053), the meeting runs 16 to 21 November in Búzios, Rio de Janeiro, hosted by the C++ Alliance. WG14 is holding its in-person meeting there at the same time. The WG21 page puts the post-Búzios mailing deadline at Tuesday Dec 15, 16:00 UTC.

The same minutes say LEWG plans to vote in Búzios on the policies it discussed in Brno.

5. Microsoft's CppCon trip report puts MSVC 14.52 in November

An older post, from Oct 21. Michael Price wrote up the Microsoft C++ team's week at CppCon 2026 in Aurora.

The part I'd pull out is the compiler timing. MSVC Build Tools v14.52 ships in November with all C++23 features implemented and a /std:c++23 switch that also works with C++/CLI, and the release candidate is available now. The post also recaps Keith Stockdale's talk from Rare on moving to /W4 /WX, where their C4189 warnings went from nearly 10,000 to zero.

CppCon is adding the 2026 session recordings to its archive on a rolling basis, according to the post.

6. Sandor Dargo on C++26 ranges: parallel algorithms and filter_view fixes

Part 3 of Sandor's C++26 ranges series, and the last one. Posted Oct 28.

The first half is P3179R9, which adds execution policies to more than 50 range algorithms. They require random_access_range and sized_range, so you can't hand them a filter_view or an unbounded views::iota, and numeric algorithms like reduce aren't included. Callables may get copied across threads, so keeping state in them gives you a data race.

The second half is P3725R3 for filter_view. It deals with UB when filter is composed with reverse, UB when you modify elements in a way that changes the predicate result, and filter not compiling with const ranges. His recommendation is to put views::to_input in front of filter. That turns the reverse problem into a compile error and lets you iterate it as const.

7. Lemire beats the compiler at signed 32-bit division by a constant

Daniel Lemire posted this Oct 31. For signed 32-bit division by a constant, compilers often emit a multiply and then a correction step that adds x back. He picks a multiplier that doesn't fit in a signed 32-bit register and does the multiply in 64 bits. Since the absolute value of x is at most 2^31, the result is still right and the correction goes away.

By his count, 376 of the 990 non-power-of-two divisors from 3 to 1000 need that correction. Dividing by 7 with clang 21 on an Emerald Rapids Xeon went from 1.76 to 1.38 cycles of throughput, and latency went from 10.4 to 8.0. With GCC 14 throughput stayed at 2.0 and latency dropped from 10.0 to 8.0. The same idea removes a branch from signed division in his fastmod library.

Dividing by 1000, which doesn't need the correction, got slower on an Apple M4 (1.77 ns vs 1.57 ns) because of an extra sign extension. So he only suggests it where the compiler would otherwise emit the correction.

8. A compile-time perfect hash in C++ at about 1.3 ns per lookup

More Lemire, from Oct 26, written up with Francisco Geiman Thiesen. It's a gperf-style perfect hash for fixed key sets, built with constexpr and shipped as a single C++23 header (ConstexprCore perfect_hash).

Key comparison is a single 16-byte vector load with the bytes past the end of the key masked off, after a check for crossing a page boundary. On an M3 Max, a 20-key HTTP header set took about 1.3 ns per lookup. gperf took 7.7 ns, Abseil's flat_hash_map 10.9 ns and std::unordered_map 16.6 ns. Across seven key sets he reports 1.2 to 2 ns.

The keys have to be known at compile time. A perfect hash doesn't test membership, so an unknown key still needs that final compare. One commenter pointed out that the 16-byte over-read is UB by the standard, even though it works on common hardware.

9. Raymond Chen on winrt::make vs make_self

Raymond's Oct 28 post is about a C++/WinRT pattern he keeps running into. People create an object with winrt::make_self and then convert it straight to the projected interface with the dereference operator, without ever touching the implementation.

make_self returns a winrt::com_ptr to the implementation type, which you want if you need non-projected members through ->. If all you need is the projection, winrt::make gives you that directly. His guess is that people taking the long way only ever learned one of the two.

Worth a look

That's all for this week.

Get it by email