Opened 10 years ago

Last modified 9 years ago

#7006 assigned Feature Requests

Restricted pointers support.

Reported by: Domagoj Šarić Owned by: Neil Groves
Milestone: To Be Determined Component: range
Version: Boost 1.50.0 Severity: Problem
Keywords: Cc:

Description

Trying to form iterator_ranges with restricted pointers causes compiler errors.

Change History (6)

comment:1 by Neil Groves, 10 years ago

I'm sorry I did not think of this during my initial development. I will ensure that the appropriate functionality and tests are added. There will be a burst of activity to try and clear the trac tickets that have accumulated on Boost.Range during the period I was having work difficulties.

I'm very sorry for the inconvenience.

comment:2 by Domagoj Šarić, 10 years ago

Hey, don't apologize :) Rather I thank you for the good work that you do ;)

comment:3 by Domagoj Šarić, 10 years ago

Can this please make it into 1.52? It shouldn't be too much work...I can help if you wish...

comment:4 by Neil Groves, 9 years ago

Status: newassigned
Type: BugsFeature Requests

comment:5 by Domagoj Šarić, 9 years ago

The root of the problem is the lack of support in the type traits system (especially in the STL)... Take a look here https://github.com/MetaScale/nt2/blob/master/modules/boost/dispatch/include/boost/dispatch/meta/is_iterator.hpp for a solution...

As usual, MSVC might be an additional problem with its lack of restricted references support: https://connect.microsoft.com/VisualStudio/feedback/details/804402/msvc-restricted-references

ps. https://connect.microsoft.com/VisualStudio/feedback/details/806869/msvc-stl-support-for-restrict

Last edited 9 years ago by Domagoj Šarić (previous) (diff)

comment:6 by Neil Groves, 9 years ago

Thanks for the additional information. I have a private branch where I'm attempting to ensure I get the changes done correctly. This one might take me a little while, and I suspect that while I shall avoid regressions that it will be almost impossible to get this correct first time for all compilers. I figure that making some headway will be progress and that this will probably require a few iterations. I'm working out my test strategy. Thanks for your patience. I have much more time to sort these things out now :-)

Note: See TracTickets for help on using tickets.