Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Oct 27th, 2005, 11:10 PM   #1
frankish
Hobbyist Programmer
 
frankish's Avatar
 
Join Date: Oct 2005
Location: Ohio
Posts: 177
Rep Power: 0 frankish is an unknown quantity at this point
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.
frankish is offline  
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump