in the implementation of the method. It gives an error
|In function `void add_body(Body&)':|
error: no matching function for call to `std::list<Body*, std::allocator<Body*> >::push_back(Body&)'|
G:\CodeBlocks\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\include\c++\3.4.5\bits\stl_list.h|785|note: candidates are: void std::list<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = Body*, _Alloc = std::allocator<Body*>]|