diff --git a/r/src/array__to_vector.cpp b/r/src/array__to_vector.cpp index 7fcb02bef3cb2..eaebfd6ff30fc 100644 --- a/r/src/array__to_vector.cpp +++ b/r/src/array__to_vector.cpp @@ -457,7 +457,7 @@ class Converter_Promotion : public Converter { } }; -template +template class Converter_Time : public Converter { public: explicit Converter_Time(const ArrayVector& arrays) : Converter(arrays) {} @@ -485,7 +485,7 @@ class Converter_Time : public Converter { private: int TimeUnit_multiplier(const std::shared_ptr& array) const { - switch (static_cast(array->type().get())->unit()) { + switch (static_cast(array->type().get())->unit()) { case TimeUnit::SECOND: return 1; case TimeUnit::MILLI: @@ -501,10 +501,10 @@ class Converter_Time : public Converter { }; template -class Converter_Timestamp : public Converter_Time { +class Converter_Timestamp : public Converter_Time { public: explicit Converter_Timestamp(const ArrayVector& arrays) - : Converter_Time(arrays) {} + : Converter_Time(arrays) {} SEXP Allocate(R_xlen_t n) const { Rcpp::NumericVector data(no_init(n));