In member function ‘void sfl::FaceTrackerLBP::match(const std::__cxx11::list<std::unique_ptr >&, const std::vector&, std::set&, std::vector<sfl::Face*>&, int)’:
/home/huangw/workspace/find_face_landmarks/sequence_face_landmarks/face_tracker_lbp.cpp:291:56: error: invalid initialization of non-const reference of type ‘std::_Rb_tree_const_iterator&’ from an rvalue of type ‘std::set::iterator {aka std::_Rb_tree_const_iterator}’
auto& tracked_it = tracked_indices.find(tracked_ind);
^
/home/huangw/workspace/find_face_landmarks/sequence_face_landmarks/face_tracker_lbp.cpp:293:50: error: invalid initialization of non-const reference of type ‘std::_Rb_tree_const_iterator&’ from an rvalue of type ‘std::set::iterator {aka std::_Rb_tree_const_iterator}’
auto& cand_it = cand_indices.find(cand_ind);
^
sequence_face_landmarks/CMakeFiles/sequence_face_landmarks.dir/build.make:110: recipe for target 'sequence_face_landmarks/CMakeFiles/sequence_face_landmarks.dir/face_tracker_lbp.cpp.o' failed
make[2]: [sequence_face_landmarks/CMakeFiles/sequence_face_landmarks.dir/face_tracker_lbp.cpp.o] Error 1
CMakeFiles/Makefile2:85: recipe for target 'sequence_face_landmarks/CMakeFiles/sequence_face_landmarks.dir/all' failed
make[1]: [sequence_face_landmarks/CMakeFiles/sequence_face_landmarks.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
In member function ‘void sfl::FaceTrackerLBP::match(const std::__cxx11::list<std::unique_ptr >&, const std::vector&, std::set&, std::vector<sfl::Face*>&, int)’:
/home/huangw/workspace/find_face_landmarks/sequence_face_landmarks/face_tracker_lbp.cpp:291:56: error: invalid initialization of non-const reference of type ‘std::_Rb_tree_const_iterator&’ from an rvalue of type ‘std::set::iterator {aka std::_Rb_tree_const_iterator}’
auto& tracked_it = tracked_indices.find(tracked_ind);
^
/home/huangw/workspace/find_face_landmarks/sequence_face_landmarks/face_tracker_lbp.cpp:293:50: error: invalid initialization of non-const reference of type ‘std::_Rb_tree_const_iterator&’ from an rvalue of type ‘std::set::iterator {aka std::_Rb_tree_const_iterator}’
auto& cand_it = cand_indices.find(cand_ind);
^
sequence_face_landmarks/CMakeFiles/sequence_face_landmarks.dir/build.make:110: recipe for target 'sequence_face_landmarks/CMakeFiles/sequence_face_landmarks.dir/face_tracker_lbp.cpp.o' failed
make[2]: [sequence_face_landmarks/CMakeFiles/sequence_face_landmarks.dir/face_tracker_lbp.cpp.o] Error 1
CMakeFiles/Makefile2:85: recipe for target 'sequence_face_landmarks/CMakeFiles/sequence_face_landmarks.dir/all' failed
make[1]: [sequence_face_landmarks/CMakeFiles/sequence_face_landmarks.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2