diff --git a/include/xo/unit/dimension.hpp b/include/xo/unit/dimension.hpp index c28936e2..c926455b 100644 --- a/include/xo/unit/dimension.hpp +++ b/include/xo/unit/dimension.hpp @@ -2,6 +2,9 @@ #pragma once +#ifdef __APPL__ +# include // for std::size_t when building with clang18 +#endif #include namespace xo { @@ -58,7 +61,7 @@ namespace xo { } /** @brief number of built-in dimensions, convenient for array sizing **/ - static constexpr std::size_t n_dim = static_cast(dimension::n_dim); + static constexpr std::uint64_t n_dim = static_cast(dimension::n_dim); } /*namespace qty*/ } /*namespace xo*/