Boost C++ Libraries: Ticket #6536: All container constructors should have a variant taking an allocator as a final parameter https://svn.boost.org/trac10/ticket/6536 <p> I am attempting to use the new allocator_traits functionality to facilitate a scoped_pointer work-alike. However, I am running into difficulties because there are a number of constructors that do not have a variant taking an allocator as a final parameter. For example, basic_string does not have a copy-constructor taking an allocator. </p> <p> Thanks, Erik Jensen </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6536 Trac 1.4.3 Ion Gaztañaga Sat, 11 Feb 2012 12:03:29 GMT <link>https://svn.boost.org/trac10/ticket/6536#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6536#comment:1</guid> <description> <p> Sorry, the scoped allocator model is not implemented yet, let's see if I can find time to bring it in Boost 1.50. Thanks for the ticket. </p> </description> <category>Ticket</category> </item> <item> <author>Erik Jensen <Erik.Jensen@…></author> <pubDate>Sat, 18 Feb 2012 01:29:19 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6536#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6536#comment:2</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/6536#comment:1" title="Comment 1">igaztanaga</a>: </p> <blockquote class="citation"> <p> Sorry, the scoped allocator model is not implemented yet, let's see if I can find time to bring it in Boost 1.50. Thanks for the ticket. </p> </blockquote> <p> I know the model itself is not supported, but the new C++11 constructors are useful for more than just that, and it seems like implementation should be pretty simple. For example, </p> <pre class="wiki">basic_string(const basic_string&amp; s, const allocator_type&amp; a) : base_t(a) { this-&gt;priv_range_initialize(s.begin(), s.end()); } </pre><p> or </p> <pre class="wiki">vector(const vector &amp;x, const allocator_type &amp;a) : base_t(a) { this-&gt;assign( container_detail::to_raw_pointer(x.members_.m_start) , container_detail::to_raw_pointer(x.members_.m_start + x.members_.m_size)); } </pre><p> Of course, there are probably more complications that I am overlooking. </p> <p> Thanks again for you consideration. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Fri, 24 Aug 2012 21:38:55 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/6536#comment:3 https://svn.boost.org/trac10/ticket/6536#comment:3 <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> Fixed in Boost 1.50 </p> Ticket