From 80c0ff52359480a482fbb01e9d2f92694e01fb54 Mon Sep 17 00:00:00 2001
From: Simon Praetorius <simon.praetorius@tu-dresden.de>
Date: Thu, 12 Dec 2019 10:23:34 +0100
Subject: [PATCH] inline function fix

---
 dune/vtk/gridcreators/serialgridcreator.hh | 1 +
 dune/vtk/vtkwriterinterface.impl.hh        | 6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/dune/vtk/gridcreators/serialgridcreator.hh b/dune/vtk/gridcreators/serialgridcreator.hh
index 75aeb13..d729149 100644
--- a/dune/vtk/gridcreators/serialgridcreator.hh
+++ b/dune/vtk/gridcreators/serialgridcreator.hh
@@ -11,6 +11,7 @@
 
 namespace Dune
 {
+  // create a distributed grid on rank 0. Needs to be load balanced afterwards.
   template <class Grid>
   struct SerialGridCreator
       : public GridCreatorInterface<Grid, SerialGridCreator<Grid>>
diff --git a/dune/vtk/vtkwriterinterface.impl.hh b/dune/vtk/vtkwriterinterface.impl.hh
index ab08feb..0a4a9bf 100644
--- a/dune/vtk/vtkwriterinterface.impl.hh
+++ b/dune/vtk/vtkwriterinterface.impl.hh
@@ -162,10 +162,10 @@ void VtkWriterInterface<GV,DC>
 namespace Impl {
 
   template <class T, std::enable_if_t<(sizeof(T)>1), int> = 0>
-  T const& printable (T const& t) { return t; }
+  inline T const& printable (T const& t) { return t; }
 
-  std::int16_t printable (std::int8_t c) { return std::int16_t(c); }
-  std::uint16_t printable (std::uint8_t c) { return std::uint16_t(c); }
+  inline std::int16_t printable (std::int8_t c) { return std::int16_t(c); }
+  inline std::uint16_t printable (std::uint8_t c) { return std::uint16_t(c); }
 
 } // end namespace Impl
 
-- 
GitLab