Manu343726 / snail

Continuation-ready container algorithms from STL algorithms
MIT License
60 stars 4 forks source link

Fixed algorithm.hpp to make ADL work correctly #2

Closed Loghorn closed 9 years ago

Loghorn commented 9 years ago

This allows ADL to select user defined overload of begin and end for custom containers.

See here http://stackoverflow.com/questions/11242542/relying-on-adl-for-stdbegin-and-stdend and here http://en.cppreference.com/w/cpp/iterator/begin

Manu343726 commented 9 years ago

Thank you very much for taking some time to take a look at the project. Little tips like this help a lot.

Loghorn commented 9 years ago

You are welcome. BTW, if the range proposal will be accepted in C++17 this library will become almost useless, but for now it a nice and simple alternative :smile:

Manu343726 commented 9 years ago

I hope Niebler's work will be accepted. Actually, I uploaded range-v3 to biicode a couple of months ago and did minor contributions to the library. But as you said, this is a simpler alternative until C++17