Avoid compiler bug

This commit is contained in:
Davis E. King 2018-11-09 09:40:18 -05:00 committed by GitHub
parent 27a5293611
commit ba361d73ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,7 +129,7 @@ std::shared_ptr<simple_object_detector_py> merge_simple_object_detectors (
{
DLIB_CASSERT(len(detectors) > 0);
std::vector<simple_object_detector> temp;
for (auto& d : detectors)
for (const auto& d : detectors)
temp.push_back(d.cast<simple_object_detector_py>().detector);
simple_object_detector_py result;