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

No operator available that can perform this conversion #100

Open
evtodorov opened this issue Jun 27, 2021 · 0 comments
Open

No operator available that can perform this conversion #100

evtodorov opened this issue Jun 27, 2021 · 0 comments

Comments

@evtodorov
Copy link

When trying to compile on Windows with MSVC I get the following error:

megaman\geometry\cyflann\index.cxx(2973): error C2664: 
'int CyflannIndex::knnSearch(const std::vector<float,std::allocator<float>> &,std::vector<std::vector<int,std::allocator<int>>,std::allocator<std::vector<int,std::allocator<int>>>>,std::vector<std::vector<float,std::allocator<float>>,std::allocator<std::vector<float,std::allocator<float>>>>,int,int,int)':
cannot convert argument 2 from
std::vector<std::vector<__pyx_t_7megaman_8geometry_7cyflann_5index_dtypei_t,std::allocator<__pyx_t_7megaman_8geometry_7cyflann_5index_dtypei_t>>,std::allocator<std::vector<__pyx_t_7megaman_8geometry_7cyflann_5index_dtypei_t,std::allocator<__pyx_t_7megaman_8geometry_7cyflann_5index_dtypei_t>>>>' 
to 'std::vector<std::vector<int,std::allocator<int>>,std::allocator<std::vector<int,std::allocator<int>>>>'
megaman\geometry\cyflann\index.cxx(2973): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
\path-to-megaman\megaman-master\megaman\geometry\cyflann\cyflann_index.h(32): note: see declaration of 'CyflannIndex::knnSearch'

Looks like a type-conversion issue with Cython, not sure whether it's just my box?

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