From 5b7bd8c570ed801bd6dd11b722fe187c55aa111b Mon Sep 17 00:00:00 2001
From: Pietro Incardona <incardon@mpi-cbg.de>
Date: Thu, 29 Oct 2020 13:45:54 +0100
Subject: [PATCH] Fixing Graph VTK writers

---
 src/VTKWriter/VTKWriter_graph.hpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/VTKWriter/VTKWriter_graph.hpp b/src/VTKWriter/VTKWriter_graph.hpp
index bb5be70..3b4bb1e 100644
--- a/src/VTKWriter/VTKWriter_graph.hpp
+++ b/src/VTKWriter/VTKWriter_graph.hpp
@@ -611,6 +611,7 @@ public:
 template<typename Graph, unsigned int i>
 class prop_output<false, Graph, i>
 {
+public:
 	/*! \brief Return the point data section for a graph g
 	 *
 	 * \param g graph
@@ -774,7 +775,7 @@ class prop_output<false, Graph, i>
 	 */
 	static std::string get_attributes_vertex()
 	{
-		return Graph::V_type::attributes::name[i];
+		return std::string("attr" + std::to_string(i));
 	}
 
 	/*! \brief Get the attributes name for edge
@@ -784,7 +785,7 @@ class prop_output<false, Graph, i>
 	 */
 	static std::string get_attributes_edge()
 	{
-		return Graph::E_type::attributes::name[i];
+		return std::string("attr" + std::to_string(i));
 	}
 };
 
-- 
GitLab