cbpporter Messages: 1401 Registered: September 2007
Ultimate Contributor
mirek wrote on Tue, 16 December 2014 08:48
Now by fix you can also mean that int() 'constructor' should be used and initialize value to zero, like std::vector does. Here I am not so sure this is such a good thing; but I am open to debate...
Mirek
Yes, that's what I meant. I know this is a touchy subject maybe with no real best answer and I was wondering what your stance is on this.
I ask for two reasons: one I needed At and forgot about the two parameter version so I ended up writing more complex code than needed to handle this (fixed now with two param version) and I'm also designing my own mini-library where I'm hitting the same problems with the container classes.