diff --git a/dlib/image_transforms/interpolation.h b/dlib/image_transforms/interpolation.h index 3cfe869ad..d7a26026c 100644 --- a/dlib/image_transforms/interpolation.h +++ b/dlib/image_transforms/interpolation.h @@ -867,11 +867,7 @@ namespace dlib const auto convert_to_output_type = [](float value) { - if -#if __cplusplus >= 201703L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) - constexpr -#endif // __cplusplus >= 201703L - (std::is_integral::value) + if (std::is_integral::value) return static_cast(value + 0.5); else return static_cast(value);