Skip to content

Commit

Permalink
metadata add get for static c-arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
burlen committed May 6, 2021
1 parent 86dbcaf commit 56c4132
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/teca_metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ class teca_metadata
int get(const std::string &name,
T *val, unsigned int n) const;

template<typename T, unsigned int N>
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<typename T>
Expand Down

0 comments on commit 56c4132

Please sign in to comment.