Opened 14 years ago

Closed 4 years 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

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 Marshall Clow, 14 years ago

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 by mloskot <mateusz@…>, 13 years ago

Cc: mateusz@… added

comment:3 by Stefan Seefeld, 5 years ago

Owner: changed from Hailin Jin to Stefan Seefeld

comment:4 by Mateusz Loskot, 4 years ago

Cc: Mateusz Loskot added

comment:5 by Mateusz Loskot, 4 years ago

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