Remove apparently unnecessary std::remove_cv_t (#66254)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/66254

`std::decay_t` already implies dropping the const

Test Plan: Sandcastle

Reviewed By: malfet

Differential Revision: D31465856

fbshipit-source-id: 851cdb9194354fe9a89b3a37a4463a43dbbcd77a
This commit is contained in:
Richard Barnes 2021-10-09 00:37:06 -07:00 committed by Facebook GitHub Bot
parent 4cb4d11e0b
commit 109aa135e6

View File

@ -151,7 +151,7 @@ inline constexpr type_index get_type_index() {
// type index through std::integral_constant.
return type_index{std::integral_constant<
uint64_t,
detail::type_index_impl<std::remove_cv_t<std::decay_t<T>>>()>::value};
detail::type_index_impl<std::decay_t<T>>()>::value};
#else
// There's nothing in theory preventing us from running this on device code
// except for nvcc throwing a compiler error if we enable it.