2
0
mirror of https://github.com/boostorg/units.git synced 2026-01-20 05:02:42 +00:00

6 Commits

Author SHA1 Message Date
Glen Fernandes
45787015dd Switch from deprecated test to Lightweight Test
Update close_to implementation in tests
2021-06-09 22:33:28 -04:00
Edward Diener
21c9dcaf3a Changes for Embarcadero C++ clang-based compilers, targeting Boost 1.74 (#47)
* Change __BORLANDC__ to BOOST_BORLANDC, which is defined in Boost config for the Embarcadero non-clang-based compilers.

* The mnemonic 'byte' is defined elsewhere, so use the full namespace.

* Using bu::information::byte once rather than fully qualified 'bu::information::byte' many times.
2020-08-25 13:08:04 +03: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
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