based
parent
1256ec201c
commit
26e606afb1
|
@ -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.15.4)
|
set(BLT_VERSION 0.15.5)
|
||||||
set(BLT_TEST_VERSION 0.0.1)
|
set(BLT_TEST_VERSION 0.0.1)
|
||||||
|
|
||||||
set(BLT_TARGET BLT)
|
set(BLT_TARGET BLT)
|
||||||
|
|
|
@ -206,6 +206,7 @@ namespace blt::unsafe
|
||||||
static_assert(std::is_trivially_copyable_v<T> && "Type must be byte copyable");
|
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");
|
static_assert(sizeof(T) <= SIZE && "Size must be less than or equal to internal buffer");
|
||||||
std::memcpy(data, &t, sizeof(t));
|
std::memcpy(data, &t, sizeof(t));
|
||||||
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
|
|
Loading…
Reference in New Issue