c++ - pcl_visualizer.cpp vs 2015 build error -


when trying compile pcl on windows 7 machine visual studio 2015 following error while pcl_visualizer.cpp building

'static_cast': cannot convert 'double' 'pcl::visualization::lookuptablerepresentationproperties 

the corresponding line of code

if (!pcl::visualization::getcolormaplut (static_cast<lookuptablerepresentationproperties>(value), table))     break; 

initially thought error of shared instead of static vtk libraries rebuilding static libs resulted in same error.

has encountered same error , figured out cause?

this might relevant

github merge log

changing all

static_cast<lookuptablerepresentationproperties>(value) 

to

static_cast<lookuptablerepresentationproperties>(int(value)) 

as suggested github merge logs prevented specific errors pcl_visualizer.cpp running full now


Comments