From 8e4b2565cd79c896aa20a670562fd6dc9cd2b161 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 31 Jan 2024 12:41:30 -0500 Subject: [PATCH] TextureConfig: Collapse std namespace for hash Lets us collapse the namespacing and make the specialization a little less noisy. --- Source/Core/VideoCommon/TextureConfig.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Source/Core/VideoCommon/TextureConfig.h b/Source/Core/VideoCommon/TextureConfig.h index 462b3dddff..4e3976f938 100644 --- a/Source/Core/VideoCommon/TextureConfig.h +++ b/Source/Core/VideoCommon/TextureConfig.h @@ -79,10 +79,8 @@ struct TextureConfig AbstractTextureType type = AbstractTextureType::Texture_2DArray; }; -namespace std -{ template <> -struct hash +struct std::hash { using argument_type = TextureConfig; using result_type = size_t; @@ -95,4 +93,3 @@ struct hash return std::hash{}(id); } }; -} // namespace std