From b4be72795d7deee0e2bbbb54f6e84424d3a1092f Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Thu, 7 Mar 2024 13:01:58 -0500 Subject: [PATCH] make sure stored type is trivally_copyable --- CMakeLists.txt | 2 +- include/blt/std/array.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e5ab94d..3e1c727 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/include/blt/std/array.h b/include/blt/std/array.h index c962554..557cfb3 100644 --- a/include/blt/std/array.h +++ b/include/blt/std/array.h @@ -45,6 +45,7 @@ namespace blt template struct metadata_template_t { + static_assert(std::is_trivially_copyable_v && "Must be raw type!"); Extra extra; // size in number of elements! blt::size_t size;