From a9f5b9e97d2d32a983799c1bf8f218888951bf1b Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Sat, 5 Oct 2024 14:48:04 -0400 Subject: [PATCH] very silly const --- CMakeLists.txt | 2 +- include/blt/math/vectors.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9afd053..b6c7bf2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.20) include(cmake/color.cmake) -set(BLT_VERSION 2.1.2) +set(BLT_VERSION 2.1.3) set(BLT_TARGET BLT) diff --git a/include/blt/math/vectors.h b/include/blt/math/vectors.h index d1ec57e..60d1a8a 100644 --- a/include/blt/math/vectors.h +++ b/include/blt/math/vectors.h @@ -266,22 +266,22 @@ namespace blt return elements.data(); } - constexpr auto begin() + [[nodiscard]] constexpr auto begin() const { return elements.begin(); } - constexpr auto end() + [[nodiscard]] constexpr auto end() const { return elements.end(); } - constexpr auto rbegin() + [[nodiscard]] constexpr auto rbegin() const { return elements.rbegin(); } - constexpr auto rend() + [[nodiscard]] constexpr auto rend() const { return elements.rend(); }