From f6cdb32b21e79f5c75cbe28345546524f7333d64 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 1 Jan 2022 18:51:39 +0000 Subject: Don't forward declare Cache --- gfx/models/texture.h | 3 ++- lib/cache.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gfx/models/texture.h b/gfx/models/texture.h index 6dbe9af..35c8c8b 100644 --- a/gfx/models/texture.h +++ b/gfx/models/texture.h @@ -1,10 +1,11 @@ #ifndef TEXTURE_H #define TEXTURE_H +#include #include #include -template class Cache; +// IWYU pragma: no_forward_declare Cache class Texture { public: diff --git a/lib/cache.h b/lib/cache.h index b081c04..2a651f0 100644 --- a/lib/cache.h +++ b/lib/cache.h @@ -33,5 +33,6 @@ public: private: std::map cached; }; +// IWYU pragma: no_forward_declare Cache #endif -- cgit v1.2.3