From 4fdfa202eef2419a9f043cd45a3075d6b5e3063f Mon Sep 17 00:00:00 2001 From: Claudius 'keldu' Holeksa Date: Wed, 21 Aug 2024 18:01:16 +0200 Subject: Pulling out Storage template --- modules/codec-netcdf/c++/netcdf.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/codec-netcdf/c++') diff --git a/modules/codec-netcdf/c++/netcdf.hpp b/modules/codec-netcdf/c++/netcdf.hpp index e89928d..f93eceb 100644 --- a/modules/codec-netcdf/c++/netcdf.hpp +++ b/modules/codec-netcdf/c++/netcdf.hpp @@ -19,7 +19,7 @@ struct Netcdf {}; * Class representing the files system netcdf file */ template -class data { +class data { private: std::vector buff_; public: @@ -44,7 +44,7 @@ public: }; template -class codec{ +class codec{ static_assert(always_false, "NetCDF only supports Structs as a root object"); }; @@ -53,7 +53,7 @@ class codec{ namespace saw { template -class codec...>, encode::Netcdf, storage::Default> { +class codec...>, encode::Netcdf> { private: using Schema = schema::Struct...>; public: @@ -69,7 +69,7 @@ public: * Encoder function */ template - error_or encode(const data& from, data& to) { + error_or encode(const data& from, data& to) { int rc{}; int ncid{}; @@ -131,7 +131,7 @@ public: * Decoder function */ template - error_or decode(data& from_decode, data& to_decode) { + error_or decode(data& from_decode, data& to_decode) { int ncid{}; int rc{}; -- cgit v1.2.3