From e1d6582cdb0e185a64272a098511701578d86b5b Mon Sep 17 00:00:00 2001 From: David Wells Date: Fri, 15 Dec 2017 10:53:07 -0500 Subject: [PATCH] Let GrowingVectorMemory work with std::vector. The VectorType class in std::pair> may not have a memory_consumption() member function (e.g., std::vector). Get around this by just using the free function instead. --- include/deal.II/lac/vector_memory.templates.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/deal.II/lac/vector_memory.templates.h b/include/deal.II/lac/vector_memory.templates.h index 4bd60279c3..41dac85989 100644 --- a/include/deal.II/lac/vector_memory.templates.h +++ b/include/deal.II/lac/vector_memory.templates.h @@ -17,8 +17,10 @@ #define dealii_vector_memory_templates_h -#include #include +#include + +#include DEAL_II_NAMESPACE_OPEN @@ -181,7 +183,7 @@ GrowingVectorMemory::memory_consumption () const end = pool.data->end(); for (typename std::vector::const_iterator i = pool.data->begin(); i != end ; ++i) - result += sizeof (*i) + i->second->memory_consumption(); + result += sizeof (*i) + MemoryConsumption::memory_consumption(i->second); return result; } -- 2.39.5