Skip to content

Commit

Permalink
Merge pull request cppfastio#700 from trcrsired/master
Browse files Browse the repository at this point in the history
fix back method in array.h
  • Loading branch information
trcrsired authored Apr 9, 2024
2 parents dc53c7e + 4b22f55 commit e08e97a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/fast_io_dsal/impl/array.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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];
Expand Down

0 comments on commit e08e97a

Please sign in to comment.