Closed redroy44 closed 8 years ago
The other way around should work:
std::vector v; ... ... // Fill v with data ... boost::circular_buffer cb(v.begin(), v.end());
meaning:
boost::circular_buffer cb; ... // Fill cb with data std::vector v(cb.begin(), cb.end());
or maybe arma::vec to keep the API consistent
The other way around should work:
std::vector v;
...
... // Fill v with data
...
boost::circular_buffer cb(v.begin(), v.end());
meaning:
boost::circular_buffer cb;
... // Fill cb with data
std::vector v(cb.begin(), cb.end());