mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-03 00:26:19 +08:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user