sadaszewski / concaveman-cpp

C++ port of mapbox's JS concaveman, with a Python wrapper
BSD 2-Clause "Simplified" License
151 stars 40 forks source link

Build issue #17

Open CEXT-Dan opened 2 years ago

CEXT-Dan commented 2 years ago

Hi, I get an error when compiling with visual studio 2019

1>C:\Users\Dan\source\repos\ArxBrxConcaveHull\ArxBrxConcaveHull\concaveman.h(215,1): error C2668: 'make_unique': ambiguous call to overloaded function

aa1000 commented 2 years ago

this is a relevant question: https://stackoverflow.com/questions/28521822/c11-14-make-unique-ambigious-overload-for-stdstring I just changed the name of make_unique to something else in the source code and it compiles fine now.

vrmaurice commented 2 years ago

just add 'std::' before the 'make_unique' and it will fix