Commit 87e04764 authored by Davis King's avatar Davis King

Removed call to std::round() since visual studio 2012 doesn't support it.

parent bc4b2814
......@@ -232,7 +232,7 @@ namespace dlib
// the above box.
double scale = std::sqrt(new_area/temp.area());
return centered_rect(center(temp), std::round(temp.width()*scale), std::round(temp.height()*scale));
return centered_rect(center(temp), static_cast<long>(temp.width()*scale+0.5), static_cast<long>(temp.height()*scale+0.5));
}
rectangle operator() (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment