使用boost :: lockfree编译时错误:: spsc_queue(它是在升压的错误吗?) [英] compile error when using boost::lockfree::spsc_queue (Is it a bug in boost?)

查看:706
本文介绍了使用boost :: lockfree编译时错误:: spsc_queue(它是在升压的错误吗?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我定义的变量如下:

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

在我的code,我想休息吧:

and in my code, I tried to rest it :

myVariable.reset();

但是当我编译我的code我得到这个错误:

but when I am compiling my code I am getting this error:

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    

为什么我收到此错误?

Why I am getting this error?

我使用的Visual Studio 2013在Windows 8.1

I am using visual studio 2013 on windows 8.1

加速版本是1.57

推荐答案

是的,这是一个错误的1.57,并已被固定在1.58

Yes that is a bug in 1.57 and has been fixed in 1.58

这篇关于使用boost :: lockfree编译时错误:: spsc_queue(它是在升压的错误吗?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆