diff -r 4a170261cc54 -r da87dbdf3daf lemon/concepts/digraph.h --- a/lemon/concepts/digraph.h Thu Feb 25 09:46:12 2021 +0100 +++ b/lemon/concepts/digraph.h Tue Jul 28 21:23:36 2020 +0200 @@ -77,6 +77,12 @@ /// Node(const Node&) { } + /// Assignment operator + + /// Assignment operator. + /// + const Node &operator=(const Node&) { return *this; } + /// %Invalid constructor \& conversion. /// Initializes the object to be invalid. @@ -126,6 +132,12 @@ /// Copy constructor. /// NodeIt(const NodeIt& n) : Node(n) { } + /// Assignment operator + + /// Assignment operator. + /// + const NodeIt &operator=(const NodeIt&) { return *this; } + /// %Invalid constructor \& conversion. /// Initializes the iterator to be invalid. @@ -185,6 +197,12 @@ /// Copy constructor. /// Arc(const Arc&) { } + /// Assignment operator + + /// Assignment operator. + /// + const Arc &operator=(const Arc&) { return *this; } + /// %Invalid constructor \& conversion. /// Initializes the object to be invalid. @@ -235,6 +253,11 @@ /// Copy constructor. /// OutArcIt(const OutArcIt& e) : Arc(e) { } + /// Assignment operator + + /// Assignment operator. + /// + const OutArcIt &operator=(const OutArcIt&) { return *this; } /// %Invalid constructor \& conversion. /// Initializes the iterator to be invalid. @@ -301,6 +324,12 @@ /// Copy constructor. /// InArcIt(const InArcIt& e) : Arc(e) { } + /// Assignment operator + + /// Assignment operator. + /// + const InArcIt &operator=(const InArcIt&) { return *this; } + /// %Invalid constructor \& conversion. /// Initializes the iterator to be invalid. @@ -365,6 +394,12 @@ /// Copy constructor. /// ArcIt(const ArcIt& e) : Arc(e) { } + /// Assignment operator + + /// Assignment operator. + /// + const ArcIt &operator=(const ArcIt&) { return *this; } + /// %Invalid constructor \& conversion. /// Initializes the iterator to be invalid. @@ -521,7 +556,12 @@ ///Copy constructor NodeMap(const NodeMap& nm) : ReferenceMap(nm) { } + public: ///Assignment operator + NodeMap& operator=(const NodeMap&) { + return *this; + } + ///Template Assignment operator template NodeMap& operator=(const CMap&) { checkConcept, CMap>(); @@ -547,6 +587,10 @@ ArcMap(const ArcMap& em) : ReferenceMap(em) { } ///Assignment operator + ArcMap& operator=(const ArcMap&) { + return *this; + } + ///Template Assignment operator template ArcMap& operator=(const CMap&) { checkConcept, CMap>();