diff --git a/lemon/lgf_reader.h b/lemon/lgf_reader.h --- a/lemon/lgf_reader.h +++ b/lemon/lgf_reader.h @@ -391,7 +391,7 @@ class DigraphReader; template - DigraphReader digraphReader(Digraph& digraph, + DigraphReader digraphReader(Digraph& digraph, std::istream& is = std::cin); template DigraphReader digraphReader(Digraph& digraph, const std::string& fn); @@ -563,7 +563,7 @@ template friend DigraphReader digraphReader(DGR& digraph, std::istream& is); template - friend DigraphReader digraphReader(DGR& digraph, + friend DigraphReader digraphReader(DGR& digraph, const std::string& fn); template friend DigraphReader digraphReader(DGR& digraph, const char *fn); @@ -1229,9 +1229,9 @@ template class GraphReader; - + template - GraphReader graphReader(Graph& graph, + GraphReader graphReader(Graph& graph, std::istream& is = std::cin); template GraphReader graphReader(Graph& graph, const std::string& fn); @@ -1366,7 +1366,7 @@ template friend GraphReader graphReader(GR& graph, std::istream& is); template - friend GraphReader graphReader(GR& graph, const std::string& fn); + friend GraphReader graphReader(GR& graph, const std::string& fn); template friend GraphReader graphReader(GR& graph, const char *fn);