make sure stored type is trivally_copyable

v1
Brett 2024-03-07 13:01:58 -05:00
parent e29faf7f3a
commit b4be72795d
2 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.5)
include(cmake/color.cmake)
set(BLT_VERSION 0.14.3)
set(BLT_VERSION 0.14.4)
set(BLT_TEST_VERSION 0.0.1)
set(BLT_TARGET BLT)

View File

@ -45,6 +45,7 @@ namespace blt
template<typename Extra>
struct metadata_template_t
{
static_assert(std::is_trivially_copyable_v<Extra> && "Must be raw type!");
Extra extra;
// size in number of elements!
blt::size_t size;