Boost C++ Libraries: Ticket #1262: [Boost.Iterators] Reasoning for boost::pointee<> not supporting back_insert_iterator? https://svn.boost.org/trac10/ticket/1262 <p> The C++ Standard specifies that <em>std::back_insert_iterator</em> does not pass the <em>value_type</em> down to the base output-iterator class. This means (by default) that the <em>value_type</em> is typed to <em>void</em> and thus unsuitable for <em>boost::pointee</em> to determine the value type. </p> <p> E.g.: </p> <pre class="wiki">typedef std::vector&lt;int&gt; Ints; typedef std::back_insert_iterator&lt;Ints&gt; Iter; typedef boost::pointee&lt;Iter&gt;::type IntType; // Errors </pre><p> The following specialization can be used to support <em>back_insert_iterator</em>: </p> <pre class="wiki">namespace boost { template &lt;class T&gt; struct pointee&lt;std::back_insert_iterator&lt;T&gt; &gt; { typedef typename T::value_type type; }; } </pre><p> Is there a particular reasoning why this is not available in the library? </p> <p> Note: this also applies to <em>std::front_insert_iterator</em>. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1262 Trac 1.4.3 Dave Abrahams Thu, 26 Jun 2008 21:33:21 GMT status, type, severity changed https://svn.boost.org/trac10/ticket/1262#comment:1 https://svn.boost.org/trac10/ticket/1262#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>type</strong> <span class="trac-field-old">Support Requests</span> → <span class="trac-field-new">Feature Requests</span> </li> <li><strong>severity</strong> <span class="trac-field-old">Not Applicable</span> → <span class="trac-field-new">Problem</span> </li> </ul> <p> It was overlooked, I guess. If you want to add it, it would help to have patches for the library, documentation (source .rst files), and tests. </p> Ticket Dave Abrahams Sat, 28 Nov 2009 16:41:43 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1262#comment:2 https://svn.boost.org/trac10/ticket/1262#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> Since it isn't possible in general to support this for all output iterators, this would be a special case. As such, it especially needs documentation. Since I don't have a doc patch or even a plaintext description of the required doc changes, I'm going to close this one as wontfix. </p> Ticket