Boost C++ Libraries: Ticket #1327: iterator value_type possibly cv-qualified https://svn.boost.org/trac10/ticket/1327 <pre class="wiki">boost::ptr_vector&lt;int const&gt;::iterator::value_type </pre><p> is <code>int const</code> now, but it should be <code>int</code>. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1327 Trac 1.4.3 Thorsten Ottosen Fri, 26 Oct 2007 23:37:14 GMT <link>https://svn.boost.org/trac10/ticket/1327#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1327#comment:1</guid> <description> <p> AFAICT, you can't even use boost::ptr_vector&lt;int const&gt;, because the whole library has not been designed/tested with this in mind. </p> <p> Standard containers don't support this. Can you describe why it is useful? </p> <p> -Thorsten </p> </description> <category>Ticket</category> </item> <item> <author>Shunsuke Sogame <pstade.mb@…></author> <pubDate>Sat, 27 Oct 2007 00:55:22 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1327#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1327#comment:2</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/1327#comment:1" title="Comment 1">nesotto</a>: </p> <blockquote class="citation"> <p> the whole library has not been designed/tested with this in mind. </p> </blockquote> <p> I didn't know that. Sorry for the noise. </p> <p> -- Shunsuke Sogame </p> </description> <category>Ticket</category> </item> <item> <author>Shunsuke Sogame <pstade.mb@…></author> <pubDate>Sat, 27 Oct 2007 01:37:23 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1327#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1327#comment:3</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/1327#comment:1" title="Comment 1">nesotto</a>: </p> <blockquote class="citation"> <p> AFAICT, you can't even use boost::ptr_vector&lt;int const&gt;, because the whole library has not been designed/tested with this in mind. </p> </blockquote> <p> Sorry again. </p> <p> See this: </p> <pre class="wiki">#include &lt;boost/ptr_container/ptr_vector.hpp&gt; #include &lt;boost/range/const_iterator.hpp&gt; #include &lt;boost/mpl/assert.hpp&gt; int main() { typedef boost::range_const_iterator&lt; boost::ptr_vector&lt;int&gt; &gt;::type citer_t; BOOST_MPL_ASSERT((boost::is_same&lt;citer_t::value_type, int const&gt;)); // pass BOOST_MPL_ASSERT((boost::is_same&lt;citer_t::value_type, int&gt;)); // failed } </pre><p> This seems a bug. </p> <p> -- </p> <p> Shunsuke Sogame </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Thorsten Ottosen</dc:creator> <pubDate>Sat, 17 Nov 2007 21:43:41 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/1327#comment:4 https://svn.boost.org/trac10/ticket/1327#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Should be fixed... </p> Ticket