Original Post
In my class template, I'm trying to pass an iterator to a function called isSelected, but it is not working at all. Here are the error messages: error: no matching function call to ComponentList::isSelected(std::_List_iterator&) note: candidates are: bool ComponentList::isSelected(typename std::list >::const_iterator&) const [with ComponentType = Vector2D] As far as I can tell, it's saying it can't cast from a std::_List_iterator& to a std::list::const_iterator&, which to me looks like just a cast from non-const to const. Any have any idea of what is wrong? Thanks in advance.