1 2
|
error: could not convert 'std::min_element<std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, Node> >, Network::closest(Node&)::<lambda(const auto:1&, const auto:2&)> >(((Network*)this)->Network::nodes.std::map<_Key, _Tp, _Compare, _Alloc>::begin<std::basic_string<char>, Node, std::less<std::basic_string<char> >, std::allocator<std::pair<const std::basic_string<char>, Node> > >(), ((Network*)this)->Network::nodes.std::map<_Key, _Tp, _Compare, _Alloc>::end<std::basic_string<char>, Node, std::less<std::basic_string<char> >, std::allocator<std::pair<const std::basic_string<char>, Node> > >(), cmp)' from 'std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, Node> >' to 'Node'
return std::min_element(nodes.begin(), nodes.end(), cmp);
|