Fix gcc 3.3 compilation error (#354)
authorPeter Kovacs <kpeter@inf.elte.hu>
Mon, 08 Mar 2010 08:33:41 +0100
changeset 941a93f1a27d831
parent 936 b6f76c95992e
child 942 d3ea191c3412
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.)
lemon/capacity_scaling.h
lemon/cost_scaling.h
lemon/hartmann_orlin.h
lemon/howard.h
lemon/karp.h
lemon/suurballe.h
     1.1 --- a/lemon/capacity_scaling.h	Thu Mar 04 10:03:14 2010 +0100
     1.2 +++ b/lemon/capacity_scaling.h	Mon Mar 08 08:33:41 2010 +0100
     1.3 @@ -301,6 +301,10 @@
     1.4  
     1.5      /// @}
     1.6  
     1.7 +  protected:
     1.8 +
     1.9 +    CapacityScaling() {}
    1.10 +
    1.11    public:
    1.12  
    1.13      /// \brief Constructor.
     2.1 --- a/lemon/cost_scaling.h	Thu Mar 04 10:03:14 2010 +0100
     2.2 +++ b/lemon/cost_scaling.h	Mon Mar 08 08:33:41 2010 +0100
     2.3 @@ -325,6 +325,10 @@
     2.4  
     2.5      /// @}
     2.6  
     2.7 +  protected:
     2.8 +
     2.9 +    CostScaling() {}
    2.10 +
    2.11    public:
    2.12  
    2.13      /// \brief Constructor.
     3.1 --- a/lemon/hartmann_orlin.h	Thu Mar 04 10:03:14 2010 +0100
     3.2 +++ b/lemon/hartmann_orlin.h	Mon Mar 08 08:33:41 2010 +0100
     3.3 @@ -241,6 +241,10 @@
     3.4  
     3.5      /// @}
     3.6  
     3.7 +  protected:
     3.8 +
     3.9 +    HartmannOrlin() {}
    3.10 +
    3.11    public:
    3.12  
    3.13      /// \brief Constructor.
     4.1 --- a/lemon/howard.h	Thu Mar 04 10:03:14 2010 +0100
     4.2 +++ b/lemon/howard.h	Mon Mar 08 08:33:41 2010 +0100
     4.3 @@ -231,6 +231,10 @@
     4.4      
     4.5      /// @}
     4.6  
     4.7 +  protected:
     4.8 +
     4.9 +    Howard() {}
    4.10 +
    4.11    public:
    4.12  
    4.13      /// \brief Constructor.
     5.1 --- a/lemon/karp.h	Thu Mar 04 10:03:14 2010 +0100
     5.2 +++ b/lemon/karp.h	Mon Mar 08 08:33:41 2010 +0100
     5.3 @@ -237,6 +237,10 @@
     5.4  
     5.5      /// @}
     5.6  
     5.7 +  protected:
     5.8 +
     5.9 +    Karp() {}
    5.10 +
    5.11    public:
    5.12  
    5.13      /// \brief Constructor.
     6.1 --- a/lemon/suurballe.h	Thu Mar 04 10:03:14 2010 +0100
     6.2 +++ b/lemon/suurballe.h	Mon Mar 08 08:33:41 2010 +0100
     6.3 @@ -403,6 +403,10 @@
     6.4      PredMap *_init_pred;
     6.5      bool _full_init;
     6.6  
     6.7 +  protected:
     6.8 +
     6.9 +    Suurballe() {}
    6.10 +
    6.11    public:
    6.12  
    6.13      /// \brief Constructor.