Signed-off-by: 胡玮文 <huww98@outlook.com>
#include <endian.h>
#include <fcntl.h>
+#include <iterator>
#include <memory>
#include <string>
#include <sys/mman.h>
void encode(const Entry& e, const SubsystemMap *s)
{
meta_buf.clear();
- fmt::format_to(meta_buf,
+ fmt::format_to(std::back_inserter(meta_buf),
R"(PRIORITY={:d}
CEPH_SUBSYS={}
TIMESTAMP={}
void encode(const LogEntry& le)
{
meta_buf.clear();
- fmt::format_to(meta_buf,
+ fmt::format_to(std::back_inserter(meta_buf),
R"(PRIORITY={:d}
TIMESTAMP={}
CEPH_NAME={}