mans
mans

Reputation: 18218

compile error when using boost::lockfree::spsc_queue (Is it a bug in boost?)

I defined a variable as follow:

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

and in my code, I tried to rest it :

myVariable.reset();

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?

I am using visual studio 2013 on windows 8.1

Edit 1:

Boost version is 1.57

Upvotes: 2

Views: 653

Answers (1)

sehe
sehe

Reputation: 393799

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

Upvotes: 1

Related Questions