C++ Logo

std-proposals

Advanced search

[std-proposals] Opt-In Compile Time Bounds Checking

From: Levo DeLellis <levo.delellis_at_[hidden]>
Date: Fri, 8 Sep 2023 20:19:53 -0500
At CppNorth a few weeks ago there was a lot of discussion about memory
safety in C++. I've been implementing a compiler with memory safety
and I thought maybe I should submit a series of proposals since I'm
already familiar with potential pitfalls, solutions and
implementation.

Attached is a proposal for safespan and nspan which requires certain
things to be known at compile time. I called the second type nspan
because it behaves differently from span. I'm not too concerned about
what these are eventually called

Received on 2023-09-09 01:20:35