From 4b22f55c64cc0e756c1c1c1bb6743fd973b78f55 Mon Sep 17 00:00:00 2001 From: trcrsired Date: Tue, 9 Apr 2024 14:46:10 -0400 Subject: [PATCH] fix back method in array.h --- include/fast_io_dsal/impl/array.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fast_io_dsal/impl/array.h b/include/fast_io_dsal/impl/array.h index 61260b45a..5ed17c894 100644 --- a/include/fast_io_dsal/impl/array.h +++ b/include/fast_io_dsal/impl/array.h @@ -171,7 +171,7 @@ class array #elif __has_cpp_attribute(msvc::forceinline) [[msvc::forceinline]] #endif - inline constexpr reference back(size_type idx) noexcept + inline constexpr reference back() noexcept { constexpr size_type nm1{N - 1}; return content[nm1]; @@ -181,7 +181,7 @@ class array #elif __has_cpp_attribute(msvc::forceinline) [[msvc::forceinline]] #endif - inline constexpr const_reference back(size_type idx) const noexcept + inline constexpr const_reference back() const noexcept { constexpr size_type nm1{N - 1}; return content[nm1];