3 ms·
I think you are missing that const is insufficient for safe concurrency; it requires programmer discipline to ensure there are no shared mutable references. Co
by flqn 5y ago
I think you are missing that const is insufficient for safe concurrency; it requires programmer discipline to ensure there are no shared mutable references.
Const also has no bearing on lifetimes. Constexpr/consteval do, but those objects always have static lifetime so it's sort of irrelevant.