k06a / boolinq

Simplest C++ header-only LINQ template library
MIT License
628 stars 79 forks source link

Warnings during compilation #42

Closed martinrotter closed 4 years ago

martinrotter commented 4 years ago

boolinq.h:67: Warning: C4100: 'index': unreferenced formal parameter

Here is source code, pls fix. Also, there are some other unreferences local variables/parameters which also produce these warnings.

        void for_each(std::function<void(T)> apply) const
        {
            return for_each_i([apply](T value, int index) { return apply(value); });
        }
k06a commented 4 years ago

Thx, will merge your PR

martinrotter commented 4 years ago

I did not commit any PR, but I see someone else did.

k06a commented 4 years ago

Oh, @martinrotter sorry. Just merged it anyway.