From 941aedb510d298851dadce32e5b20f85c9844969 Mon Sep 17 00:00:00 2001 From: Brett Date: Wed, 7 Aug 2024 01:34:31 -0400 Subject: [PATCH] make const const again --- CMakeLists.txt | 2 +- include/blt/std/memory.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c8272df..6be78fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.20) include(cmake/color.cmake) -set(BLT_VERSION 0.18.25) +set(BLT_VERSION 0.18.26) set(BLT_TEST_VERSION 0.0.1) set(BLT_TARGET BLT) diff --git a/include/blt/std/memory.h b/include/blt/std/memory.h index 69a9909..c4950e7 100644 --- a/include/blt/std/memory.h +++ b/include/blt/std/memory.h @@ -383,7 +383,7 @@ namespace blt constexpr inline const T& operator[](size_t index) const { if (index >= size()) - allocate_for(index); + BLT_ABORT("Index out of bounds"); return buffer_[index]; }