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 C2668: 'sqrt' : ambiguous call to overloaded function #848

Closed
al-eax opened this issue Aug 15, 2014 · 1 comment
Closed

error C2668: 'sqrt' : ambiguous call to overloaded function #848

al-eax opened this issue Aug 15, 2014 · 1 comment

Comments

@al-eax
Copy link

al-eax commented Aug 15, 2014

while compiling current pcl with Visual Studio 2010 64bit

"error C2668: 'sqrt' : ambiguous call to overloaded function"

VS is not able to convert sqrt(3) to sqrt(3.0f).
In grsd.hpp line 90
change
rsd.setRadiusSearch (std::max (search_radius_, sqrt (3) * width_ / 2));
to
rsd.setRadiusSearch (std::max (search_radius_, sqrt (3.0f) * width_ / 2));
to solve this problem for Visual Sutio 2010 (vc++)

@taketwo
Copy link
Member

taketwo commented Aug 15, 2014

A fix to this problem was merged just a few hours ago (#847). Please try it and close the issue if everything is fine.

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