Skip to content

Fix PCL compilation on Windows with MSVC 2015

Nicolas Cadart requested to merge fix/PclBuildOnWindows into master

MSVC 2015 does not fully support constexpr declarations. However, since PCL 1.10.0, PCL uses them quite a lot to evaluate expressions at compile-time and improve code readability.

As these expressions are not correctly resolved during compilation by MSVC 2015, a patch needs to be applied to remove these if compiling on Windows. This MR adds this patch.

Merge request reports