diff options
Diffstat (limited to 'modules/codec/c++/csv.h')
-rw-r--r-- | modules/codec/c++/csv.h | 3 |
1 files changed, 1 insertions, 2 deletions
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<schema::Struct<schema::Member<V,K>...>, FromDecode> { return eov; } } - return encode_header(to); + return encode_i<i+1>(from, to); } { /** @@ -162,7 +162,6 @@ struct csv_encode<schema::Primitive<T,N>, FromDecode> { static error_or<void> encode(const data<Schema, FromDecode>& from, buffer& to){ std::string to_str; - try { to_str = std::to_string(from.get()); }catch(const std::exception& ){ |