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

Compile error #48

Open
JdevST opened this issue Jan 26, 2023 · 0 comments
Open

Compile error #48

JdevST opened this issue Jan 26, 2023 · 0 comments

Comments

@JdevST
Copy link

JdevST commented Jan 26, 2023

I am trying to compile the project on Windows 10, visual studio 2017 and encountered an error at "sort" function in following part.

template
void sfcnn_work::sfcnn_work_init(int num_threads)
{
pair_iter<typename vector::iterator,
typename vector::iterator> a(points.begin(), pointers.begin()),
b(points.end(), pointers.end());
sort(a, b, lt);
}

Up to my knowledge, "sort" accept random access iterator as input parameter, but a and b do not look so.
Am I missing something? or the function type of old version sort as in VS2010 is different from that in VS2017?

Cloud you let me know how to solve this problem in VS 2017?

Thank you in advance.

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

1 participant