diff options
Diffstat (limited to 'Carpet/CarpetLib/src/fulltree.hh')
-rw-r--r-- | Carpet/CarpetLib/src/fulltree.hh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Carpet/CarpetLib/src/fulltree.hh b/Carpet/CarpetLib/src/fulltree.hh index 4678759b6..82d09be02 100644 --- a/Carpet/CarpetLib/src/fulltree.hh +++ b/Carpet/CarpetLib/src/fulltree.hh @@ -163,7 +163,7 @@ public: #endif // Memory usage - size_t memory () const; + size_t memory () const CCTK_ATTRIBUTE_PURE; // Output helper void output (ostream & os) const; @@ -173,6 +173,8 @@ public: // Memory usage template <typename T, int D, typename P> +inline size_t memoryof (fulltree<T,D,P> const & f) CCTK_ATTRIBUTE_PURE; +template <typename T, int D, typename P> inline size_t memoryof (fulltree<T,D,P> const & f) { return f.memory(); } |