Peter Dimov
Krystian Stasiowski wrote:
- Empty class specialization for N = 0: Implemented
I don't like this change. A special case for close to zero benefit that changes the semantics of data() to not be unique per instance.
I would hope to see close to the same semantics as std::array
Storing the size (as capacity - size) in the last char for N < 256 will have more impact, but I'm not sure that it too is worth the added complexity.
Why the last char, rather than always having the size (of whatever appropriate type) first? Is the idea that this makes data() and c_str() essentially no-ops? I guess the benefit of that depends on how often you need empty() or size() vs. data() or c_str(). Or is there some other issue? Regards, Phil.