Boost C++ Libraries: Ticket #12717: Incomplete documentation of boost::lockfree::queue::queue
https://svn.boost.org/trac10/ticket/12717
<p>
<code>boost::lockfree::queue::queue(void)</code> can only be called if if <code>boost::lockfree::capacity</code> was specified (as enforced by the <code>BOOST_ASSERT</code> in include/boost/lockfree/queue.hpp line 179. However this requirement is not enforced in a non-debug build and it is not mentioned in the documentation for <code>boost::lockfree::queue::queue(void)</code>.
</p>
<p>
The same thing is true of <code>boost::lockfree::queue::queue(allocator const &)</code> in include/boost/lockfree/queue.hpp line 198 and of <code>boost::lockfree::queue::queue(size_type)</code> in include/boost/lockfree/queue.hpp line 210.
</p>
<p>
I think these restrictions should be included in the documentation. The docs would lead me to believe that one could write
</p>
<pre class="wiki">void some_function() {
boost::lockfree::queue<int> q;
}
</pre><p>
But if that is built in debug mode it will fail the assertion in include/boost/lockfree/queue.hpp line 179
</p>
en-usBoost C++ Libraries/htdocs/site/boost.png
https://svn.boost.org/trac10/ticket/12717
Trac 1.4.3