Build issue
ducha-aiki opened this issue · comments
Dmytro Mishkin commented
I have got the following error:
/home/old-ufo/dev/graph-cut-ransac/include/progressive_napsac_sampler.h: At global scope:
/home/old-ufo/dev/graph-cut-ransac/include/progressive_napsac_sampler.h:78:19: error: duplicate ‘const’
const cv::Mat const *container_, // The pointer pointing to the data points
^~~~~
/home/old-ufo/dev/graph-cut-ransac/include/progressive_napsac_sampler.h:110:34: error: duplicate ‘const’
bool initialize(const cv::Mat const *container_);
^~~~~
/home/old-ufo/dev/graph-cut-ransac/include/progressive_napsac_sampler.h:121:59: error: duplicate ‘const’
bool ProgressiveNapsacSampler::initialize(const cv::Mat const *container_)
SO tells me that one can use typedef (good solution) or just remove one const (temp hack). I solved opted for the 2nd so far
https://stackoverflow.com/a/33207786/1983544
Daniel Barath commented
Fixed!