diff --git a/src/swcio.hpp b/src/swcio.hpp
index 09c89f8112de9379ee3248a82935a410f3a94a3c..7d940290f30fb45c7d0c9378ff0cbdbf199105f2 100644
--- a/src/swcio.hpp
+++ b/src/swcio.hpp
@@ -211,10 +211,10 @@ public:
 
     std::istream &parse_record(std::istream &is, swc_record &record);
 
+private:
     // Getline version supporting both windows and linux line endings
     std::istream &safe_getline(std::istream& is, std::string& t);
 
-private:
     // Read the record from a string stream; will be treated like a single line
     swc_record parse_record(std::istringstream &is);