From ba361d73abb06eda6a2a1bba397a680879610f0a Mon Sep 17 00:00:00 2001 From: "Davis E. King" Date: Fri, 9 Nov 2018 09:40:18 -0500 Subject: [PATCH] Avoid compiler bug --- tools/python/src/object_detection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/src/object_detection.cpp b/tools/python/src/object_detection.cpp index 1447e62ec..2daf209ac 100644 --- a/tools/python/src/object_detection.cpp +++ b/tools/python/src/object_detection.cpp @@ -129,7 +129,7 @@ std::shared_ptr merge_simple_object_detectors ( { DLIB_CASSERT(len(detectors) > 0); std::vector temp; - for (auto& d : detectors) + for (const auto& d : detectors) temp.push_back(d.cast().detector); simple_object_detector_py result;