diff --git a/cpp/src/arrow/compute/kernels/vector_sort.cc b/cpp/src/arrow/compute/kernels/vector_sort.cc index b58244ad6e6dd..8ddcbb9905cb2 100644 --- a/cpp/src/arrow/compute/kernels/vector_sort.cc +++ b/cpp/src/arrow/compute/kernels/vector_sort.cc @@ -20,9 +20,6 @@ #include "arrow/compute/kernels/vector_sort_internal.h" #include "arrow/compute/registry.h" -template <> -struct std::hash : public arrow::FieldPath::Hash {}; - namespace arrow { using internal::checked_cast; @@ -1095,7 +1092,7 @@ struct SortFieldPopulator { } std::vector sort_fields_; - std::unordered_set seen_; + std::unordered_set seen_; std::vector tmp_indices_; }; diff --git a/cpp/src/arrow/ipc/dictionary.cc b/cpp/src/arrow/ipc/dictionary.cc index 82fec31fda20a..4e14b3350b871 100644 --- a/cpp/src/arrow/ipc/dictionary.cc +++ b/cpp/src/arrow/ipc/dictionary.cc @@ -35,13 +35,6 @@ #include "arrow/util/checked_cast.h" #include "arrow/util/logging.h" -namespace std { -template <> -struct hash { - size_t operator()(const arrow::FieldPath& path) const { return path.hash(); } -}; -} // namespace std - namespace arrow { using internal::checked_cast; @@ -54,7 +47,7 @@ using internal::FieldPosition; // DictionaryFieldMapper implementation struct DictionaryFieldMapper::Impl { - using FieldPathMap = std::unordered_map; + using FieldPathMap = std::unordered_map; FieldPathMap field_path_to_id;