When using with basic_string the app crashes due to bad memory ref during the destruction phase of the basic_string. Any idea why?
std::basic_string, fixed_block_allocator> fixed_string;
How big is MAX_LEN?
Do you write to the string before destruction?
How long is the string you write?
Yes, the template parameters are swapped.
I'll re-submit the article with any other corrections that come up.
argh. my comment got eaten (where's the Preview feature CodeGuru?)
In your example, you have 100, int for the fixed_allocator arguments.
Should be int, 100 right?
This is very informative, thanks for taking the time to write it.
It seems to me that the parameters are mixed up here -- I believe it should be , correct?
// Create a set of int with a capacity of 100 elements.