From 56c4132989117f1c9345b280df26dbb8966cfbbb Mon Sep 17 00:00:00 2001 From: Burlen Loring Date: Wed, 5 May 2021 20:43:48 -0700 Subject: [PATCH] metadata add get for static c-arrays --- core/teca_metadata.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/teca_metadata.h b/core/teca_metadata.h index ff8187866..4272af62a 100644 --- a/core/teca_metadata.h +++ b/core/teca_metadata.h @@ -131,6 +131,10 @@ class teca_metadata int get(const std::string &name, T *val, unsigned int n) const; + template + int get(const std::string &name, T (&val)[N]) const + { return this->get(name, val, N); } + // copy prop values from the named prop into the passed in vector. // return 0 if successful template