diff --git a/src/VTKWriter/VTKWriter_graph.hpp b/src/VTKWriter/VTKWriter_graph.hpp index bb5be70cdf655d27b9a5913904e43f5ba80589fb..3b4bb1e61a00b564d4c0cd902b030c588915cd29 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)); } };