diff --git a/src/mut/writers.cpp b/src/mut/writers.cpp index e4ff9a2c0..e0c920ed1 100644 --- a/src/mut/writers.cpp +++ b/src/mut/writers.cpp @@ -375,7 +375,9 @@ void h5(const Morphology& morpho, const std::string& filename) { HighFive::Group g_metadata = h5_file.createGroup("metadata"); write_attribute(g_metadata, "version", std::vector{1, 2}); - write_attribute(g_metadata, "cell_family", std::vector{morpho.cellFamily()}); + write_attribute(g_metadata, + "cell_family", + std::vector{static_cast(morpho.cellFamily())}); write_attribute(h5_file, "comment", std::vector{version_string()}); if (hasPerimeterData_) {