COIN-OR::LEMON - Graph Library

Ticket #123: dim2_point_03b3e59f0b4f.patch

File dim2_point_03b3e59f0b4f.patch, 586 bytes (added by Peter Kovacs, 11 years ago)
  • lemon/dim2.h

    # HG changeset patch
    # User Peter Kovacs <kpeter@inf.elte.hu>
    # Date 1216023111 -7200
    # Node ID 03b3e59f0b4ff0b46ecb40fa0a233e0c126cf393
    # Parent  81cfc04531e8fcf0a6e72f22ff2871fcb827c416
    Set dim2::Point default constructor to (0,0)
    
    diff -r 81cfc04531e8 -r 03b3e59f0b4f lemon/dim2.h
    a b  
    6262      T y;
    6363
    6464      ///Default constructor
    65       Point() {}
     65      Point() : x(0), y(0) {}
    6666
    6767      ///Construct an instance from coordinates
    6868      Point(T a, T b) : x(a), y(b) { }