22 Aug
2014
22 Aug
'14
9:26 a.m.
On August 22, 2014 4:08:34 AM EDT, Curdeius Curdeius
I was wondering if there is any interest in adding User-Defined Literals (UDLs) to Boost.Units.
IMO, it could simplify some code and improve code readability in some cases. For example instead of writing (it's a somehow artificial example) 5.34 * si::milli * si::kilogram; 1234 * si::kilogram; one would write 5.34_g; 1234_kg;
That would be much more readable, so the idea has merit. Usability, compile-time overhead, diagnostics, etc. would be factors in evaluating the result. ___ Rob (Sent from my portable computation engine)