lemon/path_utils.h
changeset 2357 5365600a7a5c
parent 2350 eb371753e814
child 2391 14a343be7a5a
     1.1 --- a/lemon/path_utils.h	Wed Feb 07 18:07:10 2007 +0000
     1.2 +++ b/lemon/path_utils.h	Sun Feb 11 16:34:51 2007 +0000
     1.3 @@ -48,7 +48,7 @@
     1.4                typename BuildEnable = void, typename RevEnable = void>
     1.5      struct PathCopySelector {
     1.6        static void copy(Target& target, const Source& source) {
     1.7 -        source.clear();
     1.8 +        target.clear();
     1.9          for (typename Source::EdgeIt it(source); it != INVALID; ++it) {
    1.10            target.addBack(it);
    1.11          }
    1.12 @@ -60,8 +60,8 @@
    1.13        Target, Source, BuildEnable, 
    1.14        typename enable_if<typename Source::RevPathTag, void>::type> {
    1.15        static void copy(Target& target, const Source& source) {
    1.16 -        source.clear();
    1.17 -        for (typename Source::RevIt it(source); it != INVALID; ++it) {
    1.18 +        target.clear();
    1.19 +        for (typename Source::RevEdgeIt it(source); it != INVALID; ++it) {
    1.20            target.addFront(it);
    1.21          }
    1.22        }