From 9a0bd3f93dbb1babc3149e3ba6348810a909fd4f Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Wed, 10 Jan 2024 17:10:26 +0100 Subject: codec: Fixing minor issues csv and data definitions --- modules/codec/c++/csv.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/codec/c++/csv.h') diff --git a/modules/codec/c++/csv.h b/modules/codec/c++/csv.h index 7a3a18e..d35bb2d 100644 --- a/modules/codec/c++/csv.h +++ b/modules/codec/c++/csv.h @@ -118,7 +118,7 @@ struct csv_encode...>, FromDecode> { return eov; } } - return encode_header(to); + return encode_i(from, to); } { /** @@ -162,7 +162,6 @@ struct csv_encode, FromDecode> { static error_or encode(const data& from, buffer& to){ std::string to_str; - try { to_str = std::to_string(from.get()); }catch(const std::exception& ){ -- cgit v1.2.3