boost-units Questions
4
Solved
I'm doing a good amount of scientific programming and made very good experiences with both Boost.Units, which provides compile-time dimensional analysis for quantities (i.e. tags quantities with un...
Cannery asked 14/11, 2011 at 10:21
2
I'm working on a software design in which I'd like to leverage Boost.Units. Some of the units I'd like to use represent time, however, I'm inclined to use the C++11 std::chrono units for those sinc...
Ajaajaccio asked 16/10, 2013 at 20:1
2
Solved
I need to make a conversion from a general angular_velocity to degrees/second.
To illustrate this problem the example boostUnits.cpp:
#include <boost/units/systems/si.hpp>
#include <boos...
Amann asked 1/12, 2010 at 7:30
2
Conceptually it seems to me that using unit enforcing based types (Meters, Seconds, Kilograms) would have massive benefits (extra checking in passing args, getting rid of unit names in vars, etc) a...
Onder asked 25/9, 2012 at 16:24
1
Solved
Consider the following code:
#include <boost/units/io.hpp>
#include <boost/units/systems/si/plane_angle.hpp>
#include <boost/units/systems/angle/degrees.hpp>
#include <iostrea...
Purveyor asked 10/6, 2015 at 11:31
3
Solved
I need to pass the value of a quantity to a library for evaluation. The boost units library takes double values in SI, so the boost units library is very appealing in ensuring that requirement. How...
Ossy asked 18/12, 2012 at 16:10
2
Solved
Now that we soon have user defined literals (UDL), in GCC 4.7 for example, I'm eagerly waiting for (physical) unit libraries (such as Boost.Units) using them to ease expression of literals such as ...
Breakaway asked 13/2, 2012 at 9:3
3
Solved
I want to use boost::units for some SI metrics. However our code mostly deals with millimeters and instead of using
quantity<length> value = 1*milli*meter;
we would prefer something like
...
Tal asked 6/2, 2013 at 7:53
1
I'm trying to create units for meter and kilometer. I want then to sum and convert them accordingly. I know that the boost::units library has already SI system, but I want create all from scratch, ...
Defiant asked 19/7, 2012 at 10:24
1
Solved
I am currently using boost::units to represent torque in si units, however I am given the torque in pound feet. I am attempting thus to create a pound_foot unit of torque and a conversion to suppor...
Beeswing asked 3/10, 2011 at 20:4
1
© 2022 - 2024 — McMap. All rights reserved.