2017-12-12
boost circular buffer in stl vector crashes in release

问题内容: I have a class where I define a circular buffer like so: class cTest { public: boost::circular_buffer<std::vector<std::pair<double, double>>> circDat; cTest() : circDat(1000) { } }; I then create a stl vector of type cTest std::vector<cTest> vC; Afterwards I try to fill the vector like this: for (unsigned int i = 0; i < 4;