1 2 3 4 5
|
In file included from main.cc:3:
manager.hh: In member function βvoid Manager::addSubordinate(Manager&)β:
manager.hh:20: error: no matching function for call to βstd::set<Employee*, std::less<Employee*>, std::allocator<Employee*> >::insert(std::set<Employee*, std::less<Employee*>, std::allocator<Employee*> >*)β
/usr/include/c++/4.4/bits/stl_set.h:408: note: candidates are: std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename _Alloc::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(const _Key&) [with _Key = Employee*, _Compare = std::less<Employee*>, _Alloc = std::allocator<Employee*>]
/usr/include/c++/4.4/bits/stl_set.h:435: note: typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename _Alloc::rebind<_Key>::other>::const_iterator std::set<_Key, _Compare, _Alloc>::insert(typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename _Alloc::rebind<_Key>::other>::const_iterator, const _Key&) [with _Key = Employee*, _Compare = std::less<Employee*>, _Alloc = std::allocator<Employee*>]
|