Boost C++ Libraries: Ticket #6305: range_detail::make_range() copies containers needlessly https://svn.boost.org/trac10/ticket/6305 <p> When manufacturing a range for the passed in containers, range_detail::make_range() calls range_detail::is_char_ptr() which will takes its (unused) parameter by value just so <code>0L</code> can be returned. </p> <p> This means make_range() can't be used with non-copyable classes. </p> <p> See <a class="ext-link" href="http://stackoverflow.com/questions/8571608/why-does-boostequals-require-ranges-to-be-copyable"><span class="icon">​</span>http://stackoverflow.com/questions/8571608/why-does-boostequals-require-ranges-to-be-copyable</a> for the original report of this problem by Mozza314. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6305 Trac 1.4.3 Michael Burr <michael.burr@…> Tue, 20 Dec 2011 09:03:42 GMT attachment set https://svn.boost.org/trac10/ticket/6305 https://svn.boost.org/trac10/ticket/6305 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test.cpp</span> </li> </ul> <p> small repro case </p> Ticket Michael Burr <michael.burr@…> Tue, 20 Dec 2011 09:03:45 GMT attachment set https://svn.boost.org/trac10/ticket/6305 https://svn.boost.org/trac10/ticket/6305 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test.2.cpp</span> </li> </ul> <p> small repro case </p> Ticket Michael Burr <michael.burr@…> Tue, 20 Dec 2011 09:04:54 GMT attachment set https://svn.boost.org/trac10/ticket/6305 https://svn.boost.org/trac10/ticket/6305 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">as_literal.hpp.patch</span> </li> </ul> <p> patch for fix </p> Ticket Michael Burr <michael.burr@…> Tue, 20 Dec 2011 09:14:32 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6305#comment:1 https://svn.boost.org/trac10/ticket/6305#comment:1 <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">duplicate</span> </li> </ul> Ticket Michael Burr <michael.burr@…> Tue, 20 Dec 2011 09:16:08 GMT <link>https://svn.boost.org/trac10/ticket/6305#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6305#comment:2</guid> <description> <p> Dup of bug <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6149" title="#6149: Bugs: as_literal used on string container making unnecessary expensive copy (closed: fixed)">#6149</a> </p> </description> <category>Ticket</category> </item> </channel> </rss>