Vinnie Falco wrote:
That is easy to say but what do you do about this function which returns a reference:
inline value& array::operator[]( std::size_t pos ) noexcept;
What do you do if you have an array of int (scalar) and someone accesses an element in the middle and assigns a string to it?
The only possible answer is "copy the entire thing into value[]". This may
or may not be acceptable. I would think that if you have an array of 8044
ints, assigning a string somewhere in the middle would be a rare occurrence,
but who knows.
The upside is that an array of ints would consume significantly less memory
than today; this is often important and we've already seen that for a subset
of users, memory consumption is _the_ important metric. (It would also make
value_to