# 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
|
|
| 301 | 301 | |
| 302 | 302 | /// @} |
| 303 | 303 | |
| | 304 | protected: |
| | 305 | |
| | 306 | CapacityScaling() {} |
| | 307 | |
| 304 | 308 | public: |
| 305 | 309 | |
| 306 | 310 | /// \brief Constructor. |
diff --git a/lemon/cost_scaling.h b/lemon/cost_scaling.h
|
a
|
b
|
|
| 325 | 325 | |
| 326 | 326 | /// @} |
| 327 | 327 | |
| | 328 | protected: |
| | 329 | |
| | 330 | CostScaling() {} |
| | 331 | |
| 328 | 332 | public: |
| 329 | 333 | |
| 330 | 334 | /// \brief Constructor. |
diff --git a/lemon/hartmann_orlin.h b/lemon/hartmann_orlin.h
|
a
|
b
|
|
| 241 | 241 | |
| 242 | 242 | /// @} |
| 243 | 243 | |
| | 244 | protected: |
| | 245 | |
| | 246 | HartmannOrlin() {} |
| | 247 | |
| 244 | 248 | public: |
| 245 | 249 | |
| 246 | 250 | /// \brief Constructor. |
diff --git a/lemon/howard.h b/lemon/howard.h
|
a
|
b
|
|
| 231 | 231 | |
| 232 | 232 | /// @} |
| 233 | 233 | |
| | 234 | protected: |
| | 235 | |
| | 236 | Howard() {} |
| | 237 | |
| 234 | 238 | public: |
| 235 | 239 | |
| 236 | 240 | /// \brief Constructor. |
diff --git a/lemon/karp.h b/lemon/karp.h
|
a
|
b
|
|
| 237 | 237 | |
| 238 | 238 | /// @} |
| 239 | 239 | |
| | 240 | protected: |
| | 241 | |
| | 242 | Karp() {} |
| | 243 | |
| 240 | 244 | public: |
| 241 | 245 | |
| 242 | 246 | /// \brief Constructor. |
diff --git a/lemon/suurballe.h b/lemon/suurballe.h
|
a
|
b
|
|
| 403 | 403 | PredMap *_init_pred; |
| 404 | 404 | bool _full_init; |
| 405 | 405 | |
| | 406 | protected: |
| | 407 | |
| | 408 | Suurballe() {} |
| | 409 | |
| 406 | 410 | public: |
| 407 | 411 | |
| 408 | 412 | /// \brief Constructor. |