Commit Graph

3 Commits

Author SHA1 Message Date
Steven Watanabe
bf2c4d2586 A few fixes before merging this PR
* Revert most of the changes to examples, because ugly macros don't belong
  in examples.  Just use constexpr as appropriate.
* Revert Lambda changes as they're wrong and Boost.Lambda doesn't support
  constexpr.
* Remove include of broken math_fwd.hpp.
2018-01-10 12:07:09 -07:00
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
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