Boost C++ Libraries: Ticket #2229: Provide a 'base()' member for adapted views or locators. https://svn.boost.org/trac10/ticket/2229 <p> I would like the result of <code>typename View::template add_deref&lt;fn&gt;::type</code> to include a member function <code>View&amp; base()</code>, much like the iterator adapters currently do (and std::reverse_iterator). </p> <p> Imagine I have an rgb-to-hsv converted view, and then want to convert it back to rgb. All I should have to do is call <code>base()</code> </p> <p> The actual use case: I have a deref function that exposes a reference to the element in a gray pixel. I also have a function that takes a view to regular types and creates an adapted view to gray pixels with that element type. </p> <p> I want to be ample to write them so that: <code>same_types(make_pixel(remove_pixel(T)), T)</code> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2229 Trac 1.4.3 Marshall Clow Tue, 09 Sep 2008 18:51:41 GMT type, component, milestone changed; owner set https://svn.boost.org/trac10/ticket/2229#comment:1 https://svn.boost.org/trac10/ticket/2229#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Hailin Jin</span> </li> <li><strong>type</strong> <span class="trac-field-old">Bugs</span> → <span class="trac-field-new">Feature Requests</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">GIL</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.36.0</span> → <span class="trac-field-new">To Be Determined</span> </li> </ul> <p> I <em>think</em> that this is referring to GIL. </p> Ticket mloskot <mateusz@…> Sat, 03 Oct 2009 21:38:52 GMT cc set https://svn.boost.org/trac10/ticket/2229#comment:2 https://svn.boost.org/trac10/ticket/2229#comment:2 <ul> <li><strong>cc</strong> <span class="trac-author">mateusz@…</span> added </li> </ul> Ticket Stefan Seefeld Sat, 01 Jul 2017 21:11:50 GMT owner changed https://svn.boost.org/trac10/ticket/2229#comment:3 https://svn.boost.org/trac10/ticket/2229#comment:3 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Hailin Jin</span> to <span class="trac-author">Stefan Seefeld</span> </li> </ul> Ticket Mateusz Loskot Mon, 25 Jun 2018 13:20:25 GMT cc changed https://svn.boost.org/trac10/ticket/2229#comment:4 https://svn.boost.org/trac10/ticket/2229#comment:4 <ul> <li><strong>cc</strong> <span class="trac-author">Mateusz Loskot</span> added </li> </ul> Ticket Mateusz Loskot Mon, 08 Oct 2018 09:45:17 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2229#comment:5 https://svn.boost.org/trac10/ticket/2229#comment:5 <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> <p> Moved to <a class="ext-link" href="https://github.com/boostorg/gil/issues/150"><span class="icon">​</span>https://github.com/boostorg/gil/issues/150</a> </p> Ticket