A minor change to avoid errors from some compilers.

This commit is contained in:
Davis King 2015-03-02 17:49:50 -05:00
parent 17ffc7d231
commit 141a5148eb
1 changed files with 2 additions and 2 deletions

View File

@ -425,10 +425,10 @@ namespace dlib
sample_type zero(centers[0]);
set_all_elements(zero, 0);
std::vector<unsigned long, alloc> center_element_count;
std::vector<unsigned long> center_element_count;
// tells which center a sample belongs to
std::vector<unsigned long, alloc> assignments(samples.size(), samples.size());
std::vector<unsigned long> assignments(samples.size(), samples.size());
unsigned long iter = 0;