Hey guys I have been trying to figure out a problem to find the maximum and minimum value of a list of vertices. To do this I wanted to inject a functor which will compare values. The code should make more sense:
When I try and run I get a linker error :
LNK2019: unresolved external symbol "private: static struct glm::tvec3<float,0> __cdecl ModelPositioning::FindMax(class std::vector<struct glm::tvec3<float,0>,class std::allocator<struct glm::tvec3<float,0> > >)
Line 9 in ModelPositioning.h declares a static member function called FindMax. That function isn't defined in ModelPositioning.cpp. Instead you have a global functor called FindMax defined there.
@dhayden Alright, sorry templates and functors are new topics for me so I thought I was not understanding something and focusing on them. Thank you for your reply.