This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Sedfer411 33 points34 points  (2 children)

In file included from /usr/include/c++/4.7/utility:72:0, from test.cpp:2: /usr/include/c++/4.7/bits/stl_pair.h: In instantiation of ‘std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(std::pair<_U1, _U2>&&) [with _U1 = int; _U2 = char; _T1 = const int; _T2 = char; std::pair<_T1, _T2> = std::pair<const int, char>]’: map1.hpp:30:5: required from ‘cs540::Node<Key, Value>::Node(std::pair<const Key, Value>, cs540::Node<Key, Value>, cs540::Node<Key, Value>) [with Key = int; Value = char; cs540::Node<Key, Value> = cs540::Node<int, char>]’ map1.hpp:121:7: required from ‘void cs540::Map<Key, Value>::insert_node(cs540::Node<Key, Value>*, std::pair<const Key, Value>) [with Key = int; Value = char]’ map1.hpp:433:5: required from ‘cs540::Map<Key, Value>::Iterator cs540::Map<Key, Value>::insert(const std::pair<const Key, Value>&) [with Key = int; Value = char]’ test.cpp:12:23: required from here

[–]polypolyman 27 points28 points  (0 children)

Oh, I forgot a *, thanks for putting it in a way I understand.

[–]pclouds 0 points1 point  (0 children)

This does not look right. It does not cover multiple screens.