diff --git a/dlib/image_transforms/interpolation.h b/dlib/image_transforms/interpolation.h index 14ae481c1..a09dea0de 100644 --- a/dlib/image_transforms/interpolation.h +++ b/dlib/image_transforms/interpolation.h @@ -1890,7 +1890,7 @@ namespace dlib // If nearest-neighbor interpolation is wanted, then don't use an image pyramid. constexpr bool image_pyramid_enabled = !std::is_same< - std::remove_const_t>, + typename std::remove_const::type>::type, interpolate_nearest_neighbor >::value;