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 , 10 years ago
comment:2 by , 10 years ago
Hey, don't apologize :) Rather I thank you for the good work that you do ;)
comment:3 by , 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 , 9 years ago
Status: | new → assigned |
---|---|
Type: | Bugs → Feature Requests |
comment:5 by , 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
comment:6 by , 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 :-)
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.