Fixed type-name mixup in string_span.
This commit is contained in:
1 parent
6fadce975b
commit
a88cfb168a
1 file changed
+2
-4
@@ -362,21 +362,19 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
// first Count elements
|
||||
template <index_type Count>
|
||||
constexpr basic_string_span<element_type, Count> first() const
|
||||
{
|
||||
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)};
|
||||
}
|
||||
|
||||
// last Count elements
|
||||
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>()};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user