Subject: [Boost-bugs] [Boost C++ Libraries] #2229: Provide a 'base()' member for adapted views or locators.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-08-19 23:50:22
#2229: Provide a 'base()' member for adapted views or locators.
----------------------------------+-----------------------------------------
Reporter: john.femiani_at_[hidden] | Type: Bugs
Status: new | Milestone: Boost 1.36.0
Component: None | Version: Boost 1.36.0
Severity: Problem | Keywords:
----------------------------------+-----------------------------------------
I would like the result of `typename View::template add_deref<fn>::type`
to include a member function `View& base()`, much like the iterator
adapters currently do (and std::reverse_iterator).
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 `base()`
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.
I want to be ample to write them so that:
`same_types(make_pixel(remove_pixel(T)), T)`
-- Ticket URL: <http://svn.boost.org/trac/boost/ticket/2229> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:58 UTC