User interphase changes with Version 1.0
where a variable of type Time and named t is defined to have the value 5 s (seconds), the unit must be given as an unnamed object of the unit type, in this case Second. Thus, the second argument to the Time constructor is generated by the unit's default constructor.Time t (5.0, Second ());
switches on symbol reading andcout << PrintSymbol<true>
switches it off.cout << PrintSymbol<false>
Changes from Version 1.0 to Version 1.1
) and the alternative version (use aspow(object, exp)
) are provided. The type of the result of this function can not determined at compile time, but only at run time commensurability can be detected. Direct assignment likeobject.pow (exp)
from a char string is possible. The += and -= operators can not have generated quantity objects on the left hand side. In QuantityClusters, the QuantityVector access operations have been renamed to be compatible with the corresponding std:vector function names, in particular, the former add member function is now push_back or insert, respectively. The second form is invoked as insert (object, int). Also, member function length has been changed to size, and remove to erase. Other changesTime t = "1.0 s";