[Lemon-commits] Alpar Juttner: Clang -std=c++11 related fixes (#...

Lemon HG hg at lemon.cs.elte.hu
Tue Apr 14 20:42:49 CEST 2015


details:   http://lemon.cs.elte.hu/hg/lemon/rev/0998f70d0b2d
changeset: 1338:0998f70d0b2d
user:      Alpar Juttner <alpar [at] cs.elte.hu>
date:      Tue Apr 14 16:14:32 2015 +0200
description:
	Clang -std=c++11 related fixes (#325)

diffstat:

 lemon/bits/path_dump.h |  2 +-
 lemon/random.h         |  4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diffs (26 lines):

diff --git a/lemon/bits/path_dump.h b/lemon/bits/path_dump.h
--- a/lemon/bits/path_dump.h
+++ b/lemon/bits/path_dump.h
@@ -61,7 +61,7 @@
         if (path->predMap[current] == INVALID) current = INVALID;
       }
 
-      operator const typename Digraph::Arc() const {
+      operator typename Digraph::Arc() const {
         return path->predMap[current];
       }
 
diff --git a/lemon/random.h b/lemon/random.h
--- a/lemon/random.h
+++ b/lemon/random.h
@@ -249,8 +249,8 @@
 
         current = state + length;
 
-        register Word *curr = state + length - 1;
-        register long num;
+        Word *curr = state + length - 1;
+        long num;
 
         num = length - shift;
         while (num--) {


More information about the Lemon-commits mailing list