Commit Graph

8 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
Steven Watanabe
a141d13861 Fix bug in handling of chained conversions involving a non-base homogeneous unit.
[SVN r55151]
2009-07-25 05:30:08 +00:00
Steven Watanabe
8bb7f08801 Fix msvc-7.1 regression
[SVN r55140]
2009-07-24 02:48:02 +00:00
Matthias Schabel
80ffd42077 update copyright notices, minor fixes in non-SI units
[SVN r45390]
2008-05-15 15:39:02 +00:00
Steven Watanabe
f2c39caf4c Removed old conversion macros
[SVN r45334]
2008-05-13 17:23:37 +00:00
Matthias Schabel
3b0d202988 cleanup
[SVN r40169]
2007-10-19 00:25:44 +00:00
Steven Watanabe
20d9504d53 Made BOOST_UNITS_DEFAULT_CONVERSION support scaling and made conversions work when only some base_units use it
[SVN r39017]
2007-08-27 19:57:18 +00:00
Steven Watanabe
90bb9b8b9d Added BOOST_UNITS_DEFAULT_CONVERSION
[SVN r38910]
2007-08-24 17:30:18 +00:00