Since g++ now enables C++11 by default, we could consider altering IT++ objects to support the loop niceties, such as this:
std::vector<int> intvec = {9, 3, 2}; for (auto i : intvec) std::cout << i << ' ';
I don't know if such a change would be considered invasive, but if it is just about adding iterators, we could consider using it.
Hi
We should update the IT++ code to C++11. This task might require a moderate rewrite of the entire library, but I cannot be very sure. Could you come up with some design proposals and some examples of the modifications that should be made. Then we can split this rewrite in several tasks in order to allow several devs to work on this.
regards
Bogdan
Last edit: Bogdan Cristea 2016-11-08
I will look into this and put my comments here. I agree with your assessment, and we should settle on a design and put the code together.
How is this for a start?
Since this only involves adding a begin and end function, we could just provide a templatized version. This also doesn't affect compilation with older compilers.
Please let me know your opinions.
Some more:
These examples don't really provide new features, since the above operations can likely be done using plain-old IT++ operator overloaded versions anyway. I'll try to think of some more useful ideas and post them here.