[Lemon-commits] Peter Kovacs: Fix gcc 3.3 compilation error (#354)
Lemon HG
hg at lemon.cs.elte.hu
Mon Mar 8 15:29:43 CET 2010
details: http://lemon.cs.elte.hu/hg/lemon/rev/a93f1a27d831
changeset: 941:a93f1a27d831
user: Peter Kovacs <kpeter [at] inf.elte.hu>
date: Mon Mar 08 08:33:41 2010 +0100
description:
Fix gcc 3.3 compilation error (#354)
gcc 3.3 requires that a class has a default constructor if it has
template named parameters. (That constructor can be protected.)
diffstat:
lemon/capacity_scaling.h | 4 ++++
lemon/cost_scaling.h | 4 ++++
lemon/hartmann_orlin.h | 4 ++++
lemon/howard.h | 4 ++++
lemon/karp.h | 4 ++++
lemon/suurballe.h | 4 ++++
6 files changed, 24 insertions(+), 0 deletions(-)
diffs (84 lines):
diff --git a/lemon/capacity_scaling.h b/lemon/capacity_scaling.h
--- a/lemon/capacity_scaling.h
+++ b/lemon/capacity_scaling.h
@@ -301,6 +301,10 @@
/// @}
+ protected:
+
+ CapacityScaling() {}
+
public:
/// \brief Constructor.
diff --git a/lemon/cost_scaling.h b/lemon/cost_scaling.h
--- a/lemon/cost_scaling.h
+++ b/lemon/cost_scaling.h
@@ -325,6 +325,10 @@
/// @}
+ protected:
+
+ CostScaling() {}
+
public:
/// \brief Constructor.
diff --git a/lemon/hartmann_orlin.h b/lemon/hartmann_orlin.h
--- a/lemon/hartmann_orlin.h
+++ b/lemon/hartmann_orlin.h
@@ -241,6 +241,10 @@
/// @}
+ protected:
+
+ HartmannOrlin() {}
+
public:
/// \brief Constructor.
diff --git a/lemon/howard.h b/lemon/howard.h
--- a/lemon/howard.h
+++ b/lemon/howard.h
@@ -231,6 +231,10 @@
/// @}
+ protected:
+
+ Howard() {}
+
public:
/// \brief Constructor.
diff --git a/lemon/karp.h b/lemon/karp.h
--- a/lemon/karp.h
+++ b/lemon/karp.h
@@ -237,6 +237,10 @@
/// @}
+ protected:
+
+ Karp() {}
+
public:
/// \brief Constructor.
diff --git a/lemon/suurballe.h b/lemon/suurballe.h
--- a/lemon/suurballe.h
+++ b/lemon/suurballe.h
@@ -403,6 +403,10 @@
PredMap *_init_pred;
bool _full_init;
+ protected:
+
+ Suurballe() {}
+
public:
/// \brief Constructor.
More information about the Lemon-commits
mailing list