Closed mcordery closed 2 years ago
Modified Measure.cpp to include a pushback test for std::vector
PushBackTest<std::vector<DataType>> pushBackVectorTestStl; PushBackTest<std::vector<DataType, MemoryPoolAllocator>> pushBackVectorTestFast; printTestStatus("Vector PushBack", pushBackVectorTestStl, pushBackVectorTestFast);
At run time this fails with
terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Aborted (core dumped)
Also fails with clang++
Vector doesn't need to be speed up as it already allocates a fixed amount of memory. The Allocator does not support such containers and it was intended by its design.
Modified Measure.cpp to include a pushback test for std::vector
include
At run time this fails with
terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Aborted (core dumped)