nholthaus / units

a compile-time, header-only, dimensional analysis and unit conversion library built on c++14 with no dependencies.
http://nholthaus.github.io/units/
MIT License
947 stars 135 forks source link

Basic functionality without any standard libraries. #188

Closed zeel01 closed 5 years ago

zeel01 commented 5 years ago

I'm attempting to create a unit conversion system running on an Arduino. This library, given how streamlined it is and its lack of dependencies, would almost be perfect to do the heavy lifting in that situation. However, this library still relies heavily on standard libraries... which of course Arduino doesn't have.

What I'm wondering is, could a stripped down version of this (without, for example, cmath support) be possible by replacing things like std::ratio. Or is the dependance just too deep to even bother?

I'm not nearly well enough versed in templates to fully understand the inner workings here, so I apologize if this inquiry seems ridiculous.

nholthaus commented 5 years ago

definitely possible, but honestly not something that I'm going to do.

On Thu, Oct 4, 2018 at 1:46 PM zeel notifications@github.com wrote:

I'm attempting to create a unit conversion system running on an Arduino. This library, given how streamlined it is and its lack of dependencies, would almost be perfect to do the heavy lifting in that situation. However, this library still relies heavily on standard libraries... which of course Arduino doesn't have.

What I'm wondering is, could a stripped down version of this (without, for example, cmath support) be possible by replacing things like std::ratio. Or is the dependance just too deep to even bother?

I'm not nearly well enough versed in templates to fully understand the inner workings here, so I apologize if this inquiry seems ridiculous.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nholthaus/units/issues/188, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ2HH-4XmoS4DiYGc7mhnq_PjXYztDp8ks5uhkmJgaJpZM4XImL0 .