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

pcl_visualization occur compile error on MSVC #1634

Closed
UnaNancyOwen opened this issue Jun 15, 2016 · 1 comment
Closed

pcl_visualization occur compile error on MSVC #1634

UnaNancyOwen opened this issue Jun 15, 2016 · 1 comment

Comments

@UnaNancyOwen
Copy link
Member

UnaNancyOwen commented Jun 15, 2016

The pcl_visualization occur compile error c2440 on msvc.

Error   C2440   'static_cast': cannot convert from 'double' to 'pcl::visualization::LookUpTableRepresentationProperties'    pcl_visualization   C:\pcl-1.8.0\visualization\src\pcl_visualizer.cpp   1495    
Error   C2440   'static_cast': cannot convert from 'double' to 'pcl::visualization::LookUpTableRepresentationProperties'    pcl_visualization   C:\pcl-1.8.0\visualization\src\pcl_visualizer.cpp   1741    

This error occurs because that can not directly cast to enum type from double type in msvc.
It must explicitly cast to int type from double type before cast to enum type.
(It seems to be implicitly cast to int type from double type in gcc. But, It seems not allowed in msvc.)

@UnaNancyOwen UnaNancyOwen changed the title pcl_visualization occur build error on MSVC pcl_visualization occur compile error on MSVC Jun 15, 2016
@SergioRAgostinho
Copy link
Member

Fix got merged

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