mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Avoid compiler bug
This commit is contained in:
parent
27a5293611
commit
ba361d73ab
@ -129,7 +129,7 @@ std::shared_ptr<simple_object_detector_py> merge_simple_object_detectors (
|
|||||||
{
|
{
|
||||||
DLIB_CASSERT(len(detectors) > 0);
|
DLIB_CASSERT(len(detectors) > 0);
|
||||||
std::vector<simple_object_detector> temp;
|
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);
|
temp.push_back(d.cast<simple_object_detector_py>().detector);
|
||||||
|
|
||||||
simple_object_detector_py result;
|
simple_object_detector_py result;
|
||||||
|
Loading…
Reference in New Issue
Block a user