Modify

Opened 9 years ago

Last modified 5 months ago

#2229 new Feature Requests

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@…

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)

Attachments (0)

Change History (3)

comment:1 Changed 9 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 8 years ago by mloskot <mateusz@…>

Cc: mateusz@… added

comment:3 Changed 5 months ago by Stefan Seefeld

Owner: changed from Hailin Jin to Stefan Seefeld

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Stefan Seefeld.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.