Opened 14 years ago
Closed 4 years ago
#2229 closed Feature Requests (duplicate)
Provide a 'base()' member for adapted views or locators.
Reported by: | Owned by: | Stefan Seefeld | |
---|---|---|---|
Milestone: | To Be Determined | Component: | gil USE GITHUB |
Version: | Boost 1.36.0 | Severity: | Problem |
Keywords: | Cc: | mateusz@…, Mateusz Loskot |
Description
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)
Change History (5)
comment:1 by , 14 years ago
Component: | None → GIL |
---|---|
Milestone: | Boost 1.36.0 → To Be Determined |
Owner: | set to |
Type: | Bugs → Feature Requests |
comment:2 by , 13 years ago
Cc: | added |
---|
comment:3 by , 5 years ago
Owner: | changed from | to
---|
comment:4 by , 4 years ago
Cc: | added |
---|
comment:5 by , 4 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
I think that this is referring to GIL.