Why does _data rely on _size being initialized first? It uses "size" not "_size" in the expression.
Re:C++ pitfalls
by activepeanut on Wednesday November 28, 2012 @10:25PM
(#4846091)
Good catch. You're correct. I wish I could delete my original comment.
_data depends on _size being initialized first. Therefore _size must be declared above _data.
Note: I understand the next example goes over this issue. I just think this example should've been declared properly as to avoid distracting the reader from the main problem, "() vs []".