Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
dwarfovich committed Sep 14, 2024
1 parent c0d6a9b commit 17fff75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions HW3/cc_lib/include/cc/forward_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ bool ForwardListIterator<ForwardList>::operator==(const ForwardListIterator<cons
template<class ForwardList>
auto ForwardListIterator<ForwardList>::operator*() const -> const value_type&
{
return static_cast<details::DataNode<ForwardList::value_type>*>(node)->data;
return static_cast<details::DataNode<typename ForwardList::value_type>*>(node)->data;
}

template<class ForwardList>
auto ForwardListIterator<ForwardList>::operator*() -> value_type&
{
return static_cast<details::DataNode<ForwardList::value_type>*>(node)->data;
return static_cast<details::DataNode<typename ForwardList::value_type>*>(node)->data;
}

template<class ForwardList>
Expand Down

0 comments on commit 17fff75

Please sign in to comment.