Brett 2024-03-23 02:48:13 -04:00
parent 1256ec201c
commit 26e606afb1
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.15.4)
set(BLT_VERSION 0.15.5)
set(BLT_TEST_VERSION 0.0.1)
set(BLT_TARGET BLT)

View File

@ -206,6 +206,7 @@ namespace blt::unsafe
static_assert(std::is_trivially_copyable_v<T> && "Type must be byte copyable");
static_assert(sizeof(T) <= SIZE && "Size must be less than or equal to internal buffer");
std::memcpy(data, &t, sizeof(t));
return *this;
}
template<typename T>