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

Error in CMake interface due to tentative of calling non-existing default constructor #21

Open
cdsousa opened this issue Oct 29, 2021 · 0 comments

Comments

@cdsousa
Copy link

cdsousa commented Oct 29, 2021

Hi, I have been trying to wrap a lib of mine using the CMake interface and I am getting an error about calling non-existing default constructor.

I was able to reduce the issue and reproduce the error in the demo application https://github.com/jclay/cppyy-knearestneighbors-example.
To make the error arise, one simply goes to https://github.com/jclay/cppyy-knearestneighbors-example/blob/master/nearest_neighbors.h#L8 and deletes the default constructor of Point (which is not necessary in the remaining code).
It seems that the error is somehow related to the fact that std::vector<Point> is being used on some code.

I'm happy to provide further info if the error is not reproducible.

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