Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in glm::outerProduct in func_matrix.hpp? #155

Closed
fjabad opened this issue Jan 7, 2014 · 4 comments
Closed

Error in glm::outerProduct in func_matrix.hpp? #155

fjabad opened this issue Jan 7, 2014 · 4 comments
Assignees
Labels
Milestone

Comments

@fjabad
Copy link

fjabad commented Jan 7, 2014

The function is defined in func_matrix.hpp as void, when it should return a matrix:

template <typename T, precision P, template <typename, precision> class vecTypeA, template <typename, precision> class vecTypeB>
GLM_FUNC_DECL void outerProduct(vecTypeA<T, P> const & c, vecTypeB<T, P> const & r);

@ghost ghost assigned Groovounet Jan 11, 2014
Groovounet pushed a commit that referenced this issue Jan 11, 2014
@Groovounet
Copy link
Member

This bug is fixed in GLM 0.9.5.1.

Thanks for contributing,
Christophe

@fjabad
Copy link
Author

fjabad commented Jan 13, 2014

Sorry, it is still not working. I'm getting an "ambiguous call to overloaded function" in Visual Studio 2010 with this code:

#include <glm/glm.hpp>

int main() {
glm::vec4 a(0.1, 0.2, 0.3, 0.4), b(0.5, 0.6, 0.7, 0.8);

glm::mat4 o = glm::outerProduct(a, b);

return 0;

}

Regards,

Paco

@Groovounet
Copy link
Member

Ah true... :/

This bug is fixed in GLM 0.9.5 branch.

Thanks for contributing,
Christophe

@leihuayi
Copy link

Hi, it's still not working, I get the same error using CLion with the code
glm::vec4 a(0.1, 0.2, 0.3, 0.4), b(0.5, 0.6, 0.7, 0.8); glm::mat4x4 K = glm::outerProduct(a,b);
Sarah

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants