make const const again
parent
42fa378200
commit
941aedb510
|
@ -1,6 +1,6 @@
|
||||||
cmake_minimum_required(VERSION 3.20)
|
cmake_minimum_required(VERSION 3.20)
|
||||||
include(cmake/color.cmake)
|
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_TEST_VERSION 0.0.1)
|
||||||
|
|
||||||
set(BLT_TARGET BLT)
|
set(BLT_TARGET BLT)
|
||||||
|
|
|
@ -383,7 +383,7 @@ namespace blt
|
||||||
constexpr inline const T& operator[](size_t index) const
|
constexpr inline const T& operator[](size_t index) const
|
||||||
{
|
{
|
||||||
if (index >= size())
|
if (index >= size())
|
||||||
allocate_for(index);
|
BLT_ABORT("Index out of bounds");
|
||||||
return buffer_[index];
|
return buffer_[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue