forked from icaven/glm
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Converting precisions in std::vector #214
Comments
Groovounet
pushed a commit
that referenced
this issue
Jun 19, 2014
I actually don't know what the issue is for the moment. However, if you do something like: I think this used to work because GLM types had implicit cast operator to value_type. This was unsafe, hence it's been removed. Thanks, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had in 0.9.4 some code to convert precision levels
std::vectorglm::dvec3 high = ...
std::vectorglm::vec3 medium(high.size());
std::copy<high.begin(), high.end(), medium.begin());
This no longer works with an error
error: no match for 'operator=' (operand types are 'glm::detail::tvec3<float, (glm::precision)1u>' and 'glm::detail::tvec3<double, (glm::precision)0u>') *__result = *__first;
The text was updated successfully, but these errors were encountered: