Skip to content

Commit

Permalink
Fix: Don't mark stringifyExtensionBits as constexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
spnda committed Feb 22, 2024
1 parent 93a10b9 commit be30611
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions include/fastgltf/core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::underlying_type_t<Extensions>>::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).
Expand Down

0 comments on commit be30611

Please sign in to comment.