gcc 4.9 now has support for n3696 (Runtime-sized arrays with automatic storage duration). n3662 says:
In N3497 Runtime-sized arrays with automatic storage duration, Jens Maurer proposes arrays with runtime bound. These arrays are to std::dynarray as normal fixed-size arrays are to std::array.
In this mailing list, Jonathan Wakely says:
We should add a C++14 status table to the manual but in the meantime here's a quick summary of the library status.
...
These ones are missing:
- N3672 A proposal to add a utility class to represent optional objects
- N3655 TransformationTraits Redux
- N3662 C++ Dynamic Arrays
- N3644 Null Forward Iterators
The traits one is simple but a bit tedious and the iterators one probably only affects debug mode, but the other two are substantial pieces of work. Is anyone planning on working on or yet?
However, n3662 also says:
Instead of adopting C variable-length arrays we propose to define a new facility for arrays where the number of elements is bound at construction. We call these dynamic arrays, dynarray.
I can't seem to find dynarray
using a quick CTRL+F on the gcc
pages. So is dynarray
going to be implemented soon, and will variable length arrays
stay or will it disappear?