It appears your syntax error is resulting from the most vexing parse. Try instead:boost::circular_buffer<int> cb;cb.set_capacity(10); 或更简洁地说:boost::circular_buffer<int> cb((10)); 这篇关于如何从circular_buffer获取元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-29 05:20