COIN-OR::LEMON - Graph Library

Ticket #354: 354-a93f1a27d831.patch

File 354-a93f1a27d831.patch, 1.7 KB (added by Peter Kovacs, 15 years ago)
  • lemon/capacity_scaling.h

    # HG changeset patch
    # User Peter Kovacs <kpeter@inf.elte.hu>
    # Date 1268033621 -3600
    # Node ID a93f1a27d83125233114f2052c1e523c5e2f26e1
    # Parent  b6f76c95992e27eff14c52f9df53527e4c2e71da
    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.)
    
    diff --git a/lemon/capacity_scaling.h b/lemon/capacity_scaling.h
    a b  
    301301
    302302    /// @}
    303303
     304  protected:
     305
     306    CapacityScaling() {}
     307
    304308  public:
    305309
    306310    /// \brief Constructor.
  • lemon/cost_scaling.h

    diff --git a/lemon/cost_scaling.h b/lemon/cost_scaling.h
    a b  
    325325
    326326    /// @}
    327327
     328  protected:
     329
     330    CostScaling() {}
     331
    328332  public:
    329333
    330334    /// \brief Constructor.
  • lemon/hartmann_orlin.h

    diff --git a/lemon/hartmann_orlin.h b/lemon/hartmann_orlin.h
    a b  
    241241
    242242    /// @}
    243243
     244  protected:
     245
     246    HartmannOrlin() {}
     247
    244248  public:
    245249
    246250    /// \brief Constructor.
  • lemon/howard.h

    diff --git a/lemon/howard.h b/lemon/howard.h
    a b  
    231231   
    232232    /// @}
    233233
     234  protected:
     235
     236    Howard() {}
     237
    234238  public:
    235239
    236240    /// \brief Constructor.
  • lemon/karp.h

    diff --git a/lemon/karp.h b/lemon/karp.h
    a b  
    237237
    238238    /// @}
    239239
     240  protected:
     241
     242    Karp() {}
     243
    240244  public:
    241245
    242246    /// \brief Constructor.
  • lemon/suurballe.h

    diff --git a/lemon/suurballe.h b/lemon/suurballe.h
    a b  
    403403    PredMap *_init_pred;
    404404    bool _full_init;
    405405
     406  protected:
     407
     408    Suurballe() {}
     409
    406410  public:
    407411
    408412    /// \brief Constructor.