Commit Graph

10 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
Jürgen Hunold
2bf44a75bc include io.hpp for streaming operators 2014-08-22 11:44:17 +02:00
Steven Watanabe
8f866ba0de Revert [67111] (addition of boost/detail/iomanip.hpp) and all the commits that depend on it. ([68137], [68140], [68141], [68154], and [68165]).
[SVN r68168]
2011-01-15 08:11:51 +00:00
Bryce Adelstein-Lelbach
c19d963752 Replacing the use of <iomanip> with <boost/detail/iomanip.hpp> across Boost.
On Linux, GNU's libstdc++, which is the default stdlib for icc and clang,
cannot parse the <iomanip> header in version 4.5+ (which thankfully neither
compiler advises the use of yet), as it's original C++98-friendly
implementation has been replaced with a gnu++0x implementation.
<boost/detail/iomanip.hpp> is a portable implementation of <iomanip>, providing
boost::detail::setfill, boost::detail::setbase, boost::detail::setw,
boost::detail::setprecision, boost::detail::setiosflags and
boost::detail::resetiosflags. 



[SVN r68140]
2011-01-14 02:35:58 +00:00
Steven Watanabe
54c596ab5c Merge the units/autoprefix branch back to the trunk. Fixes #3660. Fixes #3707
[SVN r62532]
2010-06-07 23:49:52 +00:00
Matthias Schabel
e4bcde0076 *** MAJOR ***
potentially breaking changes : rename SI/CGS namespaces to lowercase
remove some non-SI units (mostly obscure)

move base_units into boost/units
move physical_dimensions into boost/units
improved base_units for non-SI 

[SVN r45508]
2008-05-19 00:30:13 +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
3f2dc504da Reduced examples to 80 columns
[SVN r42870]
2008-01-19 22:35:35 +00:00
Matthias Schabel
2066a7ed26 comment out scalar/quantity multiplication and division operators for mixed types
[SVN r41811]
2007-12-06 22:59:36 +00:00
Steven Watanabe
24e2221ded New examples--rename old ones
[SVN r38706]
2007-08-16 00:54:21 +00:00