gpt4 book ai didi

c++ - 使用 boost::lockfree::spsc_queue 时出现编译错误(是否是 boost 中的错误?)

转载 作者:塔克拉玛干 更新时间:2023-11-03 07:17:56 24 4
gpt4 key购买 nike

我定义了一个变量如下:

boost::lockfree::spsc_queue<std::vector<char *>, boost::lockfree::capacity<10> > myVariable;

在我的代码中,我试图休息它:

myVariable.reset();

但是当我编译我的代码时,我得到了这个错误:

Error   17  error C2660: 'boost::lockfree::detail::ringbuffer_base<T>::pop' : function does not take 1 arguments    C:\Local\boost\boost\lockfree\spsc_queue.hpp    

为什么会出现此错误?

我在 windows 8.1 上使用 visual studio 2013

编辑 1:

boost 版本为1.57

最佳答案

是的,这是 1.57 中的错误,已在 1.58 中修复

关于c++ - 使用 boost::lockfree::spsc_queue 时出现编译错误(是否是 boost 中的错误?),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30779322/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com