tags:

views:

33

answers:

2

Hi everybody!

Last question before the weekend ... i promise ... :)

Title says it all: is it possible to use the operators defined in glm::gtx::comparison in stl algorithms?

Specifically i have this code:

std::vector<glm::ivec3> vecA, vecB;    // vectors with content
bool result = std::equal(vecA.begin(), vecA.end(), vecB.begin());

This by default fails cause operator== can't be found.

Enjoy your weekend, you have earned it! :) Florian

PS: Cause i can't log into sourceforge: could someone file a bug report in the ogl-math (glm) project stating that std::numeric_limits should be implemented?

A: 

That's an open bug apparently.

genpfault
ah ok ... should have considered that option ;)
Florian
A: 

You can #include equal_operator.hpp, in the virtrev/ directory.

Calvin1602
"virtrev/equal_operator.hpp" is included by "glm/ext.hpp" so this doesn't solve the problem.
Florian