[Boost-bugs] [Boost C++ Libraries] #10468: Regression in boost::lockfree::spsc_queue.reset()

Subject: [Boost-bugs] [Boost C++ Libraries] #10468: Regression in boost::lockfree::spsc_queue.reset()
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-09-05 15:36:59


#10468: Regression in boost::lockfree::spsc_queue.reset()
------------------------------+--------------------------
 Reporter: mark.incley@… | Owner: timblechmann
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: lockfree
  Version: Boost 1.56.0 | Severity: Regression
 Keywords: lockfree reset |
------------------------------+--------------------------
 Hi,

 With Boost 1.55, the following code compiles under MSVC 11 (Visual Studio
 2012 with Update 4) without problem:

 boost::lockfree::spsc_queue<int, boost::lockfree::capacity<1024> >
 spsc_queue;
 spsc_queue.reset();

 However, the same code fails to compile under Boost 1.56, producing the
 following error:

 1>C:\ThirdPartySDK\boost_1_56_0\boost\lockfree\spsc_queue.hpp(339): error
 C2660: 'boost::lockfree::detail::ringbuffer_base<T>::pop' : function does
 not take 1 arguments
 1> with
 1> [
 1> T=int
 1> ]
 1>
 C:\ThirdPartySDK\boost_1_56_0\boost\lockfree\spsc_queue.hpp(334) : while
 compiling class template member function 'void
 boost::lockfree::detail::ringbuffer_base<T>::reset(void)'
 1> with
 1> [
 1> T=int
 1> ]
 1> icd.cpp(308) : see reference to function template
 instantiation 'void
 boost::lockfree::detail::ringbuffer_base<T>::reset(void)' being compiled
 1> with
 1> [
 1> T=int
 1> ]
 1>
 C:\ThirdPartySDK\boost_1_56_0\boost\lockfree\spsc_queue.hpp(408) : see
 reference to class template instantiation
 'boost::lockfree::detail::ringbuffer_base<T>' being compiled
 1> with
 1> [
 1> T=int
 1> ]
 1>
 C:\ThirdPartySDK\boost_1_56_0\boost\lockfree\spsc_queue.hpp(643) : see
 reference to class template instantiation
 'boost::lockfree::detail::compile_time_sized_ringbuffer<T,MaxSize>' being
 compiled
 1> with
 1> [
 1> T=int,
 1> MaxSize=1024
 1> ]
 1> icd.cpp(307) : see reference to class template instantiation
 'boost::lockfree::spsc_queue<T,A0>' being compiled
 1> with
 1> [
 1> T=int,
 1> A0=boost::lockfree::capacity<1024>
 1> ]

 Thanks
 Mark.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10468>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:16 UTC