Clang -std=c++11 related fixes (#325)
authorAlpar Juttner <alpar@cs.elte.hu>
Tue, 14 Apr 2015 16:14:32 +0200
changeset 11320998f70d0b2d
parent 1131 4add05447ca0
child 1133 93d455c647be
Clang -std=c++11 related fixes (#325)
lemon/bits/path_dump.h
lemon/random.h
     1.1 --- a/lemon/bits/path_dump.h	Tue Apr 14 08:39:40 2015 +0200
     1.2 +++ b/lemon/bits/path_dump.h	Tue Apr 14 16:14:32 2015 +0200
     1.3 @@ -61,7 +61,7 @@
     1.4          if (path->predMap[current] == INVALID) current = INVALID;
     1.5        }
     1.6  
     1.7 -      operator const typename Digraph::Arc() const {
     1.8 +      operator typename Digraph::Arc() const {
     1.9          return path->predMap[current];
    1.10        }
    1.11  
     2.1 --- a/lemon/random.h	Tue Apr 14 08:39:40 2015 +0200
     2.2 +++ b/lemon/random.h	Tue Apr 14 16:14:32 2015 +0200
     2.3 @@ -249,8 +249,8 @@
     2.4  
     2.5          current = state + length;
     2.6  
     2.7 -        register Word *curr = state + length - 1;
     2.8 -        register long num;
     2.9 +        Word *curr = state + length - 1;
    2.10 +        long num;
    2.11  
    2.12          num = length - shift;
    2.13          while (num--) {