diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-11-08 16:20:32 +0100 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-11-08 16:20:32 +0100 |
commit | 3353cad0b365bc870306ccaa21f701859e68a92f (patch) | |
tree | 04f737ad844d10ef550d04a6f8140b69fc7032a4 /c++/codec-netcdf/netcdf.h | |
parent | feae80e5e4236654ea5a843197e05d9211869750 (diff) |
codec-netcdf: Multidimensional arrays implemented
Diffstat (limited to 'c++/codec-netcdf/netcdf.h')
-rw-r--r-- | c++/codec-netcdf/netcdf.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/c++/codec-netcdf/netcdf.h b/c++/codec-netcdf/netcdf.h index d579b7f..c99217e 100644 --- a/c++/codec-netcdf/netcdf.h +++ b/c++/codec-netcdf/netcdf.h @@ -2,7 +2,7 @@ #include <forstio/core/string_literal.h> #include <forstio/core/error.h> -#include <forstio/codec/codec.h> +#include <forstio/codec/data.h> #include <netcdf.h> @@ -66,7 +66,7 @@ public: */ template<typename FromEncoding> error_or<void> encode() { - return void_t{}; + return make_error<err::not_implemented>(); } /** @@ -78,7 +78,7 @@ public: int rc{}; rc = nc_open(from_decode.get_path().c_str(), NC_NOWRITE, &ncid); - if(rc){ + if(rc != NC_NOERR){ // Don't know how to get the error, so fail critically. return make_error<err::critical>(); } |