genbattle / dkm

A generic C++11 k-means clustering implementation
MIT License
209 stars 47 forks source link

Support MSVC++ 12.0 #4

Closed muecs closed 6 years ago

muecs commented 6 years ago

Hi Nick,

I have added a simple work-around for the std::discrete_distribution constructor taking begin/end iterators that is missing from MSVC++ 12.0, so that dkm.hpp now compiles in Visual Studio 2013.

For later versions of VS/VC and other compilers the existing code path remains to be used, which works just fine.

Thanks and keep up the great work, Steve