gravatar
kpeter (Peter Kovacs)
kpeter@inf.elte.hu
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.)
0 6 0
default
6 files changed with 24 insertions and 0 deletions:
↑ Collapse diff ↑
Ignore white space 6 line context
... ...
@@ -298,12 +298,16 @@
298 298
      : public CapacityScaling<GR, V, C, SetHeapTraits<T> > {
299 299
      typedef  CapacityScaling<GR, V, C, SetHeapTraits<T> > Create;
300 300
    };
301 301

	
302 302
    /// @}
303 303

	
304
  protected:
305

	
306
    CapacityScaling() {}
307

	
304 308
  public:
305 309

	
306 310
    /// \brief Constructor.
307 311
    ///
308 312
    /// The constructor of the class.
309 313
    ///
Ignore white space 6 line context
... ...
@@ -322,12 +322,16 @@
322 322
      : public CostScaling<GR, V, C, SetLargeCostTraits<T> > {
323 323
      typedef  CostScaling<GR, V, C, SetLargeCostTraits<T> > Create;
324 324
    };
325 325

	
326 326
    /// @}
327 327

	
328
  protected:
329

	
330
    CostScaling() {}
331

	
328 332
  public:
329 333

	
330 334
    /// \brief Constructor.
331 335
    ///
332 336
    /// The constructor of the class.
333 337
    ///
Ignore white space 12 line context
... ...
@@ -238,12 +238,16 @@
238 238
      : public HartmannOrlin<GR, LEN, SetPathTraits<T> > {
239 239
      typedef HartmannOrlin<GR, LEN, SetPathTraits<T> > Create;
240 240
    };
241 241

	
242 242
    /// @}
243 243

	
244
  protected:
245

	
246
    HartmannOrlin() {}
247

	
244 248
  public:
245 249

	
246 250
    /// \brief Constructor.
247 251
    ///
248 252
    /// The constructor of the class.
249 253
    ///
Ignore white space 6 line context
... ...
@@ -228,12 +228,16 @@
228 228
      : public Howard<GR, LEN, SetPathTraits<T> > {
229 229
      typedef Howard<GR, LEN, SetPathTraits<T> > Create;
230 230
    };
231 231
    
232 232
    /// @}
233 233

	
234
  protected:
235

	
236
    Howard() {}
237

	
234 238
  public:
235 239

	
236 240
    /// \brief Constructor.
237 241
    ///
238 242
    /// The constructor of the class.
239 243
    ///
Ignore white space 6 line context
... ...
@@ -234,12 +234,16 @@
234 234
      : public Karp<GR, LEN, SetPathTraits<T> > {
235 235
      typedef Karp<GR, LEN, SetPathTraits<T> > Create;
236 236
    };
237 237

	
238 238
    /// @}
239 239

	
240
  protected:
241

	
242
    Karp() {}
243

	
240 244
  public:
241 245

	
242 246
    /// \brief Constructor.
243 247
    ///
244 248
    /// The constructor of the class.
245 249
    ///
Ignore white space 6 line context
... ...
@@ -400,12 +400,16 @@
400 400
    
401 401
    // Data for full init
402 402
    PotentialMap *_init_dist;
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.
409 413
    ///
410 414
    /// Constructor.
411 415
    ///
0 comments (0 inline)