Fix endless recursion in std::string_view writer: the write() should use std::string, not std::string_view again (#219)

This commit is contained in:
Dmitry Mikushin
2024-10-20 11:57:16 +02:00
committed by GitHub
parent 09eef9d5a1
commit 70b57ea709
+1 -1
View File
@@ -31,7 +31,7 @@ struct Parser<R, W, std::string_view, ProcessorsType> {
template <class P>
static void write(const W& _w, const std::string_view& _str,
const P& _p) noexcept {
Parser<R, W, std::string_view, ProcessorsType>::write(_w, std::string(_str),
Parser<R, W, std::string, ProcessorsType>::write(_w, std::string(_str),
_p);
}