vptree icon indicating copy to clipboard operation
vptree copied to clipboard

function in namespace std does not name a template type

Open bubble-07 opened this issue 6 years ago • 1 comments

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.

bubble-07 avatar Jan 11 '20 23:01 bubble-07

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

anselanza avatar Jan 13 '21 16:01 anselanza