Our great sponsors
-
C++ Middleware Writer
The repo contains library code to support messaging and serialization. There are also two programs in the repo that are needed to use the CMW.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
span-lite
span lite - A C++20-like span for C++98, C++11 and later in a single-file header-only library
Thanks for bringing these up. Some people are "rustifying" C++ code also. I'm doing what I can to improve C++ by developing an on-line code generator. It's implemented as a 3-tier system. The front tier is less than 30 lines long and is very portable.
There's also extern types, which appears to have been implemented but not stabilized.
I think the difficulty here might be exclusive to pointers and pointer-like types due to const not "propagating" across them, as you pointed out earlier. In fact, there's a propagate_const type that was proposed to address this exact issue, but it looks like such a thing never made it into the standard proper. There's also copy_cvref/clone_cvref (among other things) from P1450: Enriching type modification traits, but it seems that missed C++23 and is currently slated for C++26 :( (An implementation does appear to be available, though, so it seems to be "just" a library addition that doesn't need compiler changes).
Another solution: use std::span (or some alternative implementations if the codebase doesn't use C++20).
Another solution: use std::span (or some alternative implementations if the codebase doesn't use C++20).
Another solution: use std::span (or some alternative implementations if the codebase doesn't use C++20).