lviennot / hub-labeling

Computing a hub labeling (aka 2-hop labeling) of a weighted directed graph
GNU General Public License v3.0
4 stars 1 forks source link

heap_unit: add missing limits import #2

Closed pacien closed 7 months ago

pacien commented 10 months ago

This fixes the following build error:

hub-labeling/src/heap_unit.cc: In function ‘void heap_test(int, int)’:
hub-labeling/src/heap_unit.cc:31:21: error: ‘numeric_limits’ is not a member of ‘std’
   31 |     int last = std::numeric_limits<int>::min();
      |                     ^~~~~~~~~~~~~~
hub-labeling/src/heap_unit.cc:31:36: error: expected primary-expression before ‘int’
   31 |     int last = std::numeric_limits<int>::min();
      |                                    ^~~
make[3]: *** [CMakeFiles/unit.dir/build.make:76: CMakeFiles/unit.dir/src/heap_unit.cc.o] Error 1

Output dirs have also been added to .gitignore.