Skip to content

Commit 64d982c

Browse files
committed
chore: replace member functions with free functions for better generic handling
1 parent f069e09 commit 64d982c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cucumber_cpp/library/Application.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace cucumber_cpp
3939

4040
std::string_view subrange_to_sv(const auto& subrange)
4141
{
42-
return { subrange.data(), subrange.data() + subrange.size() };
42+
return { std::data(subrange), std::data(subrange) + std::size(subrange) };
4343
}
4444

4545
template<class Range, class Delim>

0 commit comments

Comments
 (0)