2
0
mirror of https://github.com/boostorg/units.git synced 2026-01-19 16:52:14 +00:00
Commit Graph

5 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
Steven Watanabe
b60f7d07b0 Reduced the number of template instantiations
[SVN r46632]
2008-06-24 03:04:49 +00:00
Steven Watanabe
60bff01a0b Hook up Units documentation
[SVN r46544]
2008-06-20 03:57:42 +00:00
Matthias Schabel
af82085e43 add example of use with Boost.Lambda
[SVN r46491]
2008-06-18 20:32:25 +00:00