From be3061176e6d12dc513f88257bae10f97a35f540 Mon Sep 17 00:00:00 2001 From: sean Date: Thu, 22 Feb 2024 18:59:08 +0100 Subject: [PATCH] Fix: Don't mark stringifyExtensionBits as constexpr --- include/fastgltf/core.hpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/include/fastgltf/core.hpp b/include/fastgltf/core.hpp index 593770f99..8fa81b3b5 100644 --- a/include/fastgltf/core.hpp +++ b/include/fastgltf/core.hpp @@ -399,12 +399,7 @@ namespace fastgltf { /** * Returns a list of extension names based on the given extension flags. */ -#if FASTGLTF_CPP_20 - constexpr -#else - inline -#endif - auto stringifyExtensionBits(Extensions extensions) -> decltype(Asset::extensionsRequired) { + inline auto stringifyExtensionBits(Extensions extensions) -> decltype(Asset::extensionsRequired) { decltype(Asset::extensionsRequired) stringified; for (std::uint8_t i = 0; i < std::numeric_limits>::digits; ++i) { // The 1 has to be cast to the underlying type as uint8_t(1) << 9 will overflow and be effectively the same as uint8_t(1).