Fixed type-name mixup in string_span.

This commit is contained in:
Neil MacIntosh 2016-07-27 13:48:29 -07:00
parent 6fadce975b
commit a88cfb168a

View File

@ -362,21 +362,19 @@ public:
{ {
} }
// first Count elements
template <index_type Count> template <index_type Count>
constexpr basic_string_span<element_type, Count> first() const constexpr basic_string_span<element_type, Count> first() const
{ {
return {span_.template first<Count>()}; return {span_.template first<Count>()};
} }
constexpr basic_string_span<index_type, dynamic_extent> first(index_type count) const constexpr basic_string_span<element_type, dynamic_extent> first(index_type count) const
{ {
return {span_.first(count)}; return {span_.first(count)};
} }
// last Count elements
template <index_type Count> template <index_type Count>
constexpr basic_string_span<index_type, Count> last() const constexpr basic_string_span<element_type, Count> last() const
{ {
return {span_.template last<Count>()}; return {span_.template last<Count>()};
} }