diff --git a/cpp/src/arrow/util/ulp_distance.cc b/cpp/src/arrow/util/ulp_distance.cc index cbc6e92090bf..912de62f987e 100644 --- a/cpp/src/arrow/util/ulp_distance.cc +++ b/cpp/src/arrow/util/ulp_distance.cc @@ -50,7 +50,7 @@ struct FloatToUInt { template struct UlpDistanceUtil { public: - using UIntType = FloatToUInt::Type; + using UIntType = typename FloatToUInt::Type; static constexpr UIntType kNumberOfBits = sizeof(Float) * 8; static constexpr UIntType kSignMask = static_cast(1) << (kNumberOfBits - 1);