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

function in namespace std does not name a template type #3

Open
bubble-07 opened this issue Jan 11, 2020 · 1 comment
Open

function in namespace std does not name a template type #3

bubble-07 opened this issue Jan 11, 2020 · 1 comment

Comments

@bubble-07
Copy link

bubble-07 commented Jan 11, 2020

If I try to compile the python bindings using the recommended instructions on a stock Ubuntu 18.04 install [after installing necessary dependencies], I get the error mentioned in the title. Luckily, there seems to be an easy fix -- throw in an #include<functional> to the top of vptree.hpp.

@anselanza
Copy link

anselanza commented Jan 13, 2021

This is a handy fix. I wish I knew why it works, though?

I presume it's because the functional standard library includes the function class? as per https://en.cppreference.com/w/cpp/header/functional

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