prog.cpp: In function ‘int main(int, const char**)’:
prog.cpp:50:27: error: no matching function for call to ‘BehaviourSeek::BehaviourSeek(Actor&)’
BehaviourSeek date (a1);
^
prog.cpp:33:5: note: candidate: ‘BehaviourSeek::BehaviourSeek(Actor*)’
BehaviourSeek (Actor* target) {
^~~~~~~~~~~~~
prog.cpp:33:5: note: no known conversion for argument 1 from ‘Actor’ to ‘Actor*’
prog.cpp:29:7: note: candidate: ‘constexpr BehaviourSeek::BehaviourSeek(const BehaviourSeek&)’
class BehaviourSeek {
^~~~~~~~~~~~~
prog.cpp:29:7: note: no known conversion for argument 1 from ‘Actor’ to ‘const BehaviourSeek&’
prog.cpp:29:7: note: candidate: ‘constexpr BehaviourSeek::BehaviourSeek(BehaviourSeek&&)’
prog.cpp:29:7: note: no known conversion for argument 1 from ‘Actor’ to ‘BehaviourSeek&&’
prog.cpp:52:37: error: no matching function for call to ‘std::__cxx11::list<BehaviourSeek*>::push_back(BehaviourSeek&)’
a0.BehaviourList.push_back (date);
^
In file included from /usr/include/c++/8/list:63,
from prog.cpp:9:
/usr/include/c++/8/bits/stl_list.h:1219:7: note: candidate: ‘void std::__cxx11::list<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = BehaviourSeek*; _Alloc = std::allocator<BehaviourSeek*>; std::__cxx11::list<_Tp, _Alloc>::value_type = BehaviourSeek*]’
push_back(const value_type& __x)
^~~~~~~~~
/usr/include/c++/8/bits/stl_list.h:1219:7: note: no known conversion for argument 1 from ‘BehaviourSeek’ to ‘BehaviourSeek* const&’
/usr/include/c++/8/bits/stl_list.h:1224:7: note: candidate: ‘void std::__cxx11::list<_Tp, _Alloc>::push_back(std::__cxx11::list<_Tp, _Alloc>::value_type&&) [with _Tp = BehaviourSeek*; _Alloc = std::allocator<BehaviourSeek*>; std::__cxx11::list<_Tp, _Alloc>::value_type = BehaviourSeek*]’
push_back(value_type&& __x)
^~~~~~~~~
/usr/include/c++/8/bits/stl_list.h:1224:7: note: no known conversion for argument 1 from ‘BehaviourSeek’ to ‘BehaviourSeek*&&’