-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
Apologies ahead of time, first time commenting on Github.
When trying to run your code, I received the following error:
In file included from ./main.cpp:3:
./solver.hpp:66:56: error: member reference base type 'void' is not a structure or union
return m_objects.emplace_back(position, radius);
It was fixed when I redefined the addObject function in Solver class:
Original:
VerletObject& addObject(sf::Vector2f position, float radius)
{
return m_objects.emplace_back(position, radius);
}
Fix:
VerletObject& addObject(sf::Vector2f position, float radius)
{
m_objects.emplace_back(position, radius);
return m_objects.back();
}
ataberkaslan and OuterRef
Metadata
Metadata
Assignees
Labels
No labels