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

Variable length of non-POD element type 'Quaterniond'(aka "Quaternion<double>') #1

Closed
FalconFlight1 opened this issue May 8, 2017 · 3 comments

Comments

@FalconFlight1
Copy link

FalconFlight1 commented May 8, 2017

macOS Sierra10.12
Xcode 8.2.1
iPhone 6plus
ios 10.0.1
issue #1
Variable length of non-POD element type 'Quaterniond'(aka "Quaternion')
40595ad9-4b73-4266-b73f-485f4e80fccb
When building the project

@FalconFlight1
Copy link
Author

FalconFlight1 commented May 8, 2017

Fixes #1
Problem solved by changing the structure to a pointer.

//Quaterniond q_array[max_length];

Quaterniond *q_array = new Quaterniond[max_length];

@lisasu-g
Copy link

Good job!

@PeiliangLi PeiliangLi mentioned this issue May 25, 2017
@tigerking
Copy link

Do not forget to release the memory before this function returned

if(q_array) delete[] q_array;
}

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

No branches or pull requests

3 participants