lemon-graph: fix C++17 build
This commit is contained in:
parent
91414c639f
commit
c5f2f03426
2 changed files with 20 additions and 0 deletions
|
@ -18,6 +18,11 @@ stdenv.mkDerivation rec {
|
|||
# error: no viable conversion from ...
|
||||
doCheck = !stdenv.isDarwin;
|
||||
|
||||
patches = [
|
||||
# error: ISO C++17 does not allow 'register' storage class specifier
|
||||
./remove-register.patch
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://lemon.cs.elte.hu/trac/lemon";
|
||||
description = "Efficient library for combinatorial optimization tasks on graphs and networks";
|
||||
|
|
15
pkgs/development/libraries/lemon-graph/remove-register.patch
Normal file
15
pkgs/development/libraries/lemon-graph/remove-register.patch
Normal file
|
@ -0,0 +1,15 @@
|
|||
diff --git a/lemon/random.h b/lemon/random.h
|
||||
index 8de74ede8a..f9861f3916 100644
|
||||
--- a/lemon/random.h
|
||||
+++ b/lemon/random.h
|
||||
@@ -249,8 +249,8 @@ namespace lemon {
|
||||
|
||||
current = state + length;
|
||||
|
||||
- register Word *curr = state + length - 1;
|
||||
- register long num;
|
||||
+ Word *curr = state + length - 1;
|
||||
+ long num;
|
||||
|
||||
num = length - shift;
|
||||
while (num--) {
|
Loading…
Reference in a new issue