last commit before swtiching to drop branch

dev-0.2.1
Brett 2025-01-11 15:56:21 -05:00
parent d19bc6b94b
commit a497a006ee
2 changed files with 6 additions and 3 deletions

View File

@ -27,7 +27,7 @@ macro(compile_options target_name)
sanitizers(${target_name})
endmacro()
project(blt-gp VERSION 0.2.9)
project(blt-gp VERSION 0.2.10)
include(CTest)

View File

@ -74,9 +74,12 @@ namespace blt::gp
};
template <typename T>
static inline constexpr blt::size_t aligned_size() noexcept
static inline constexpr size_t aligned_size() noexcept
{
return aligned_size(sizeof(NO_REF_T<T>));
const auto bytes = aligned_size(sizeof(NO_REF_T<T>));
if constexpr (blt::gp::detail::has_func_drop_v<T>)
return bytes + sizeof(size_t*);
return bytes;
}
static inline constexpr blt::size_t aligned_size(blt::size_t size) noexcept