|
-
April 12th, 2010, 02:16 AM
#2
Re: Object storage & lifetime C++ Design
>> I decided I didn't like how object construction/destruction and storage were tied together. I believe they can be separated.
the problem is that IMHO allocation and construction are not orthogonal concepts ( because you need to specify where an object is constructed before it's constructed ); therefore, the STL designers decided to give allocators both responsibilities of construction and allocation, although through different member functions.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|