Nick Sabalausky wrote: > I've been thinking it might be nice to have both. Compile-time for obvious > reasons but then also run-time ones that could do conversions: > > auto velocity = convert(meter/second)(distance / time); // Actual > runtime-conversion
I'm pretty sure Boost.Units already does this, although in general it's probably better to stick with SI units in your code and only perform conversions on input/output. -- Rainer Deyke - [email protected]
