Skip to content

Commit b465e55

Browse files
committed
type_traits: refine has_void_element_type
1 parent 3ed8049 commit b465e55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/entt/core/type_traits.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ template<typename, typename = void>
753753
struct has_void_element_type: std::false_type {};
754754

755755
template<typename Type>
756-
struct has_void_element_type<Type, typename std::pointer_traits<Type>::element_type>: std::true_type {};
756+
struct has_void_element_type<Type, std::remove_const_t<typename std::pointer_traits<Type>::element_type>>: std::true_type {};
757757

758758
template<typename>
759759
[[nodiscard]] constexpr bool dispatch_is_equality_comparable();

0 commit comments

Comments
 (0)