From 26e606afb18c44ad2fbe982edbdf2811da4d8ad1 Mon Sep 17 00:00:00 2001 From: Brett Date: Sat, 23 Mar 2024 02:48:13 -0400 Subject: [PATCH] based --- CMakeLists.txt | 2 +- include/blt/std/any.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 41c8a67..b7d6d45 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.15.4) +set(BLT_VERSION 0.15.5) set(BLT_TEST_VERSION 0.0.1) set(BLT_TARGET BLT) diff --git a/include/blt/std/any.h b/include/blt/std/any.h index 7ec4c83..110314d 100644 --- a/include/blt/std/any.h +++ b/include/blt/std/any.h @@ -206,6 +206,7 @@ namespace blt::unsafe static_assert(std::is_trivially_copyable_v && "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