last commit before swtiching to drop branch
parent
d19bc6b94b
commit
a497a006ee
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue