The VectorType class in
std::pair<bool, std::unique_ptr<VectorType>>
may not have a memory_consumption() member function (e.g.,
std::vector). Get around this by just using the free function instead.
#define dealii_vector_memory_templates_h
-#include <deal.II/lac/vector_memory.h>
#include <deal.II/base/std_cxx14/memory.h>
+#include <deal.II/base/memory_consumption.h>
+
+#include <deal.II/lac/vector_memory.h>
DEAL_II_NAMESPACE_OPEN
end = pool.data->end();
for (typename std::vector<entry_type>::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;
}
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams