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

with GLM_FORCE_INLINE defined glm::to_string template cannot be used #506

Closed
afoksha opened this issue May 12, 2016 · 3 comments
Closed
Assignees
Labels
Milestone

Comments

@afoksha
Copy link

afoksha commented May 12, 2016

Sometimes it is good to print variable values to see what they are, but then GLM_FORCE_INLINE
has to be disabled.

I think it make sense to declare glm::to_string without inlining directive, as input/output operations are slow anyway. Then all the computation routines will be inlined and at the same time variables could be printed.

This is more of a suggestion, than an issue.

BTW, awesome library -- very nice and intuitive syntax. A lot of useful functions. Explicit access to members without annoying setters and getters crap, inlining + no constructor init if needed.

@regnirpsj
Copy link

are you aware of glm/gtx/io.hpp?

@afoksha
Copy link
Author

afoksha commented May 13, 2016

Thanks for pointing out, sir.

Getting glm::to_string compilable with GLM_FORCE_INLINE defined makes sence anyway.

@Groovounet Groovounet added this to the GLM 0.9.7 milestone May 18, 2016
@Groovounet Groovounet self-assigned this May 18, 2016
@Groovounet Groovounet added the bug label May 18, 2016
@Groovounet
Copy link
Member

This was actually an issue that should be fixed in GLM 0.9.7.5 release. Thanks for reporting!
Christophe

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