diff options
-rw-r--r-- | gfx/models/texture.h | 3 | ||||
-rw-r--r-- | lib/cache.h | 1 |
2 files changed, 3 insertions, 1 deletions
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 <cache.h>
#include <filesystem>
#include <glArrays.h>
-template<typename Obj> 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<std::string, Ptr> cached; }; +// IWYU pragma: no_forward_declare Cache #endif |