diff --git a/include/string_span.h b/include/string_span.h index 1df7e6e..0ca3c51 100644 --- a/include/string_span.h +++ b/include/string_span.h @@ -362,21 +362,19 @@ public: { } - // first Count elements template constexpr basic_string_span first() const { return {span_.template first()}; } - constexpr basic_string_span first(index_type count) const + constexpr basic_string_span first(index_type count) const { return {span_.first(count)}; } - // last Count elements template - constexpr basic_string_span last() const + constexpr basic_string_span last() const { return {span_.template last()}; }