@@ -137,53 +137,3 @@ static_assert(std::is_constructible_v<host_resource_ref, host_device_resource_re
137137
138138/* * @} */ // end of group
139139} // namespace RMM_NAMESPACE
140-
141- // Specialize std::common_type to enable ternary operator type deduction.
142- // A host_device resource can be used as either a device-only or host-only resource.
143- namespace std {
144-
145- // host_device_async_resource_ref and device_async_resource_ref -> device_async_resource_ref
146- template <>
147- struct common_type <rmm::host_device_async_resource_ref, rmm::device_async_resource_ref> {
148- using type = rmm::device_async_resource_ref;
149- };
150-
151- template <>
152- struct common_type <rmm::device_async_resource_ref, rmm::host_device_async_resource_ref> {
153- using type = rmm::device_async_resource_ref;
154- };
155-
156- // host_device_resource_ref and device_resource_ref -> device_resource_ref
157- template <>
158- struct common_type <rmm::host_device_resource_ref, rmm::device_resource_ref> {
159- using type = rmm::device_resource_ref;
160- };
161-
162- template <>
163- struct common_type <rmm::device_resource_ref, rmm::host_device_resource_ref> {
164- using type = rmm::device_resource_ref;
165- };
166-
167- // host_device_async_resource_ref and host_async_resource_ref -> host_async_resource_ref
168- template <>
169- struct common_type <rmm::host_device_async_resource_ref, rmm::host_async_resource_ref> {
170- using type = rmm::host_async_resource_ref;
171- };
172-
173- template <>
174- struct common_type <rmm::host_async_resource_ref, rmm::host_device_async_resource_ref> {
175- using type = rmm::host_async_resource_ref;
176- };
177-
178- // host_device_resource_ref and host_resource_ref -> host_resource_ref
179- template <>
180- struct common_type <rmm::host_device_resource_ref, rmm::host_resource_ref> {
181- using type = rmm::host_resource_ref;
182- };
183-
184- template <>
185- struct common_type <rmm::host_resource_ref, rmm::host_device_resource_ref> {
186- using type = rmm::host_resource_ref;
187- };
188-
189- } // namespace std
0 commit comments