From 87b3085f6ec296e29b640f7edb3b9727795c7053 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 26 Jul 2025 03:12:56 +0000 Subject: [PATCH] Add comment explaining safe usage of typename T::element_type in not_null_hash Co-authored-by: carsonRadtke <10507970+carsonRadtke@users.noreply.github.com> --- include/gsl/pointers | 1 + 1 file changed, 1 insertion(+) diff --git a/include/gsl/pointers b/include/gsl/pointers index 2a032ab..282229f 100644 --- a/include/gsl/pointers +++ b/include/gsl/pointers @@ -231,6 +231,7 @@ template not_null operator+(std::ptrdiff_t, const not_null&) = delete; +// T is conceptually a pointer so we don't have to worry about it being a reference and violating std::hash requirements template >::value> struct not_null_hash {