Skip to content

Commit 70b57ea

Browse files
authored
Fix endless recursion in std::string_view writer: the write() should use std::string, not std::string_view again (#219)
1 parent 09eef9d commit 70b57ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/rfl/parsing/Parser_string_view.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ struct Parser<R, W, std::string_view, ProcessorsType> {
3131
template <class P>
3232
static void write(const W& _w, const std::string_view& _str,
3333
const P& _p) noexcept {
34-
Parser<R, W, std::string_view, ProcessorsType>::write(_w, std::string(_str),
34+
Parser<R, W, std::string, ProcessorsType>::write(_w, std::string(_str),
3535
_p);
3636
}
3737

0 commit comments

Comments
 (0)