
The following code assertss for me, g++ 4 on Mac OS X. Notice how I only need to do 33 iterations.
I will get back to you. No, I havent done exhaustive cross-platform testing but this is suprising and indicates a basic fault. I use Ubuntu by default.
Ddo you have even a basic testing suite for this code? I couldn't find one, and this seems like a fairly fundamental bug. Perhaps it doesn't occur on windows?
#include "boost/monotonic/vector.h"
int main() { boost::monotonic::inline_storage<100*sizeof(int)> storage; // create local storage on the stack boost::monotonic::vector<int> deathrow(storage); // create a std::vector that uses this storage
for(int i = 0; i < 33; ++i) deathrow.push_back(i);
}
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Christian.