Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make error - --__i is not working in many versions of windows #207

Open
anirudhkannanvp opened this issue Dec 7, 2018 · 1 comment
Open

Comments

@anirudhkannanvp
Copy link

Replace --__i with __i=__i-1 in two lines in the header file stl_iterator_base_funcs.h . This should make it work .

@stefandevai
Copy link

I'm having the same problem on Linux. The cause is that std::advance in include/meta/parallel/parallel_for.h searches a -- operator implementation for the iterator class in dataset_view (include/meta/learn/dataset_view.h).

So better than editing the standard headers, I would only add those missing operators to the iterator class in dataset_view.h :

iterator& operator--()
{
    --it_;
    return *this;
}

iterator operator--(int)
{
    auto ret = *this;
    --(*this);
    return ret;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants