make sure stored type is trivally_copyable
parent
e29faf7f3a
commit
b4be72795d
|
@ -1,7 +1,7 @@
|
||||||
cmake_minimum_required(VERSION 3.5)
|
cmake_minimum_required(VERSION 3.5)
|
||||||
include(cmake/color.cmake)
|
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_TEST_VERSION 0.0.1)
|
||||||
|
|
||||||
set(BLT_TARGET BLT)
|
set(BLT_TARGET BLT)
|
||||||
|
|
|
@ -45,6 +45,7 @@ namespace blt
|
||||||
template<typename Extra>
|
template<typename Extra>
|
||||||
struct metadata_template_t
|
struct metadata_template_t
|
||||||
{
|
{
|
||||||
|
static_assert(std::is_trivially_copyable_v<Extra> && "Must be raw type!");
|
||||||
Extra extra;
|
Extra extra;
|
||||||
// size in number of elements!
|
// size in number of elements!
|
||||||
blt::size_t size;
|
blt::size_t size;
|
||||||
|
|
Loading…
Reference in New Issue