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

Template based class value #10

Open
nourani opened this issue Dec 18, 2014 · 2 comments
Open

Template based class value #10

nourani opened this issue Dec 18, 2014 · 2 comments

Comments

@nourani
Copy link
Owner

nourani commented Dec 18, 2014

The Quantity class is currently hard-coded to store a "double". Using template based type can help reduce memory and computation for slower/smaller computers

@crayzeewulf
Copy link
Contributor

I agree. This is a good idea. We should probably use std::is_floating_point or std::is_integral to make sure that the specified type is sensible for a quantity with units.

@nourani
Copy link
Owner Author

nourani commented Dec 19, 2014

Good idea!

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

No branches or pull requests

2 participants