|
Software Engineering
Ok, picture this, you belong to a company called Software Originals, Ltd. Cool huh? Well, it's a small company consisting of me and you. We're an outsourcing company. Anyways, we've been asked to fix a problem with what is thought to be in the C++ STL. Specifically, it has to do with the vector object.
The problem is that the C++ containers seem to reallocate memory when stuff is added to them or when they are copied. Our client does not like this memory reallocation, he thinks it's possibly dangerous and would like us to do something about it. I'm sitting this one out 'cause I'm the owner of this company. You, the software engineer, must come up with a way to get by this. What do you do? Reimplement the STL? Is that a practical decision? What would you do in this situation and how would you do it? (whatever you do)
I'm serious here. Imagine that you are really in this company and you are faced with this choice. This is kind of to get you (an me) to think.
|