Re: [boost] [units] Interest in UDLs (e.g. _kg) for units?

Yes, the idea is to include all the prefix variants as well, so for the mass, we will have: ..., _ng, _ug (?), _mg, _g, _kg, _Mg,_Gg, _Tg, ... And, the fact is, writing si::milli * si::kilogram is counterintuitive as you have just experienced on your own. Marek Kurdej -- Ph.D. candidate

Looks much nicer! Will reduce the user resistance to using Boost.Units - it's a bit verbose for mere engineers and scientist's taste ;-) But have you implemented it yet? (and are there any hidden gotchas? - the proposed C++ time literals suffixes proved to be a can of worms :-( Paul --- Paul A. Bristow Prizet Farmhouse Kendal UK LA8 8AB +44 (0) 1539 561830

Paul A. Bristow skrev den 2014-08-26 19:13:
One known problem is that the kg is the base unit, despite its prefix. That makes the higher units a bit odd. I have never ever seen Mg used, it would be called a ton (metric...). Then we have megatons, but never teragrams. Closing the can before anything bad happens... Bo Persson

Am Mittwoch, 27. August 2014, 11:01:46 schrieb Bo Persson:
Yes, supporting variants most is definetely a must.
One of the Boost goals is to find gotchas before they enter the standard. As long as this is an optional add-in, I'm all for it.
Well, kilotons are also used. And we have km but not mm :-) Am Freitag, 22. August 2014, 10:08:34 schrieb Curdeius Curdeius:
I think boost::units::systems::si:literals is a better namespace. Yours, Jürgen -- * Dipl.-Math. Jürgen Hunold ! * voice: ++49 4257 300 ! Fährstraße 1 * fax : ++49 4257 300 ! 31609 Balge/Sebbenhausen * jhunold@gmx.eu ! Germany
participants (4)
-
Bo Persson
-
Jürgen Hunold
-
Marek Kurdej
-
Paul A. Bristow