From 60ca9a1cdec3685e1b8496bd9c9dc7c9486157e7 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 19 Mar 2023 23:28:56 +0000 Subject: Add aggregrate constructor to TexturePacker::Area as required --- assetFactory/texturePacker.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'assetFactory/texturePacker.h') diff --git a/assetFactory/texturePacker.h b/assetFactory/texturePacker.h index 7e00f1a..ca0d67a 100644 --- a/assetFactory/texturePacker.h +++ b/assetFactory/texturePacker.h @@ -10,6 +10,10 @@ public: using Size = glm::uvec2; struct Area { +#ifndef __cpp_aggregate_paren_init + constexpr Area(Position p, Size s) : position {std::move(p)}, size {std::move(s)} { } +#endif + Position position; Size size; bool -- cgit v1.2.3