Minor change to avoid a compile time error in gcc-3.3

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403644
This commit is contained in:
Davis King 2010-05-23 01:58:32 +00:00
parent 720fb2fc77
commit 96a2a7b90a

View File

@ -343,7 +343,8 @@ namespace dlib
// Make a kcentroid and find out what the gap is at the current gamma. Try to pick a reasonable
// tolerance.
const double tolerance = std::min(gamma*0.01, 0.01);
kcentroid<kernel_type> kc(kernel_type(gamma), tolerance, num_sv);
const kernel_type kern(gamma);
kcentroid<kernel_type> kc(kern, tolerance, num_sv);
scalar_type temp = centroid_gap(kc, samples, labels);
if (verbose)