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

标签 c++ visual-studio boost

我定义了一个变量如下:

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/

相关文章:

wpf - Visual Studio 2010/2012 WPF 设计器扩展

javascript - Visual Studio - javascript 自定义对象的智能感知

c++ - 是否可以使用包含 boost::variant 的 STL 容器并在变体类型本身中使用相同的容器类型?

c++ - 在 Mac OS X Mavericks 上编译 boost

c++ - Boost Geometry/intersection() 似乎返回不一致的结果

c++ - 如何在 centos 6 上恢复系统 gcc 编译器

c++ - Valgrind 在程序出现段错误之前就以 "pure virtual method called"中止

c++ - 使用自动存储的指针应该包含析构函数吗?

c++ - 静态分配的内存在静态取消初始化期间会变得无效吗?

visual-studio - Visual Studio 中的多个窗口