Commit Graph

4 Commits

Author SHA1 Message Date
Giel van Schijndel
595390497c Add constexpr support
Ensuring that:
 * it still works as before on C++98 and C++03
 * C++11 "strict" constexpr is used where possible
  - requires replacing { R x; return f(x); } with { return f(R()); }
 * C++14 "relaxed" constexpr is used only where otherwise impossible
  - assignment operators
  - functions who's implementations require more than a single return
    statement
2016-08-15 00:14:14 +02:00
Marek Kurdej
8280a87225 Add IEC 80000-13:2008 binary prefixes and test their formatting with boost::units::binary_prefix.
Signed-off-by: Marek Kurdej <mkurdej@users.noreply.github.com>
2014-08-25 09:41:24 +02:00
Marek Kurdej
ffefa65ab2 [boost] [units] Added zebi and yobi IEC prefixes and corresponding tests. 2014-08-01 09:54:48 +02:00
Erik Erlandson
1932dc718c New unit system <boost/units/systems/information.hpp>
Defines base units and system units for: bit, byte, nat, hartley and shannon,
and scale units for binary prefixes kibi, mebi, gibi, tebi, pebi, exbi.
2014-06-18 14:14:12 -07:00