KarlsruheMIS / KaMIS

Maximum independent sets and vertex covers of large sparse graphs.

Home Page:http://KarlsruheMIS.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error: reference to 'partition' is ambiguous

yurivict opened this issue · comments

clang-13 fails to compile KaMIS:

In file included from /disk-samsung/freebsd-ports/math/kamis/work/KaMIS-2.0-17-g171b753/lib/mis/evolutionary/reduction_evolution.cpp:14:
/disk-samsung/freebsd-ports/math/kamis/work/KaMIS-2.0-17-g171b753/lib/mis/evolutionary/combine/multiway_combine.h:115:98: error: reference to 'partition' is ambiguous
        void apply_k_partition_kahip(MISConfig & config, graph_access & G, separator_pool *pool, partition & part);
                                                                                                 ^
/disk-samsung/freebsd-ports/math/kamis/work/KaMIS-2.0-17-g171b753/lib/mis/evolutionary/separator_pool.h:21:8: note: candidate found by name lookup is 'partition'
struct partition {
       ^
/usr/include/c++/v1/__algorithm/partition.h:78:1: note: candidate found by name lookup is 'std::partition'
partition(_ForwardIterator __first, _ForwardIterator __last, _Predicate __pred)
^
1 error generated.

OS: FreeBSD 13.1

Thank you for pointing this out. Fixed by removing 'using namespace std;" from a header file.