Opened 10 years ago

Closed 2 months ago

#2229 closed Feature Requests (duplicate)

Provide a 'base()' member for adapted views or locators.

Reported by: john.femiani@… Owned by: Stefan Seefeld
Milestone: To Be Determined Component: gil USE GITHUB
Version: Boost 1.36.0 Severity: Problem
Keywords: Cc: mateusz@…, Mateusz Loskot


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 Changed 10 years ago by Marshall Clow

Component: NoneGIL
Milestone: Boost 1.36.0To Be Determined
Owner: set to Hailin Jin
Type: BugsFeature Requests

I think that this is referring to GIL.

comment:2 Changed 9 years ago by mloskot <mateusz@…>

Cc: mateusz@… added

comment:3 Changed 18 months ago by Stefan Seefeld

Owner: changed from Hailin Jin to Stefan Seefeld

comment:4 Changed 6 months ago by Mateusz Loskot

Cc: Mateusz Loskot added

comment:5 Changed 2 months ago by Mateusz Loskot

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.