Skip to content

Releases: nholthaus/units

v3.0.0 Beta 2

14 Oct 22:23
Compare
Choose a tag to compare
v3.0.0 Beta 2 Pre-release
Pre-release

What's Changed

  • Fix incorrect math function output for scaled dimensionless types, v3.x edition by @ts826848 in #295
  • fix locale unit test
  • update gtest cmake
  • add vs2019 to appveyor
  • make .value() and .to<>() behave the same for scaled dimensionless units
  • ensure consistency and testing of scaled dimensionless unit math functions

Full Changelog: v3.0.0.beta...v3.0.0.beta.2

v2.3.3

07 Oct 16:09
b04d436
Compare
Choose a tag to compare

Fixes mil definition

v3.0.0 Beta

26 Sep 19:15
Compare
Choose a tag to compare
v3.0.0 Beta Pre-release
Pre-release
  • added support for nlohmann json
  • NaN support
  • add Gal unit of acceleration
  • improved stream operators

v2.3.2

26 Sep 19:17
e75b56e
Compare
Choose a tag to compare

Various fixes and improvements

v3.0.0 Alpha 3

28 Oct 16:43
791dab5
Compare
Choose a tag to compare
v3.0.0 Alpha 3 Pre-release
Pre-release

Post name refactor

v3.0.0 Alpha 2

22 Jun 16:36
Compare
Choose a tag to compare
v3.0.0 Alpha 2 Pre-release
Pre-release

Many new features of v3.x implemeneted, including first-class support for integer units

v3.0.0.alpha

26 Apr 21:03
4c801c9
Compare
Choose a tag to compare
v3.0.0.alpha Pre-release
Pre-release

Preview of version 3.0.0 featuring user-defined variadic dimensions.

No documentation updates yet.

v2.3.1

22 Apr 16:39
9ce80a3
Compare
Choose a tag to compare

New in v2.3.1

This version removes support for the Visual Studio 2013 compiler.

Features:

  • units now include constexpr name() and abbreviation() member functions, which do not really on string/iostream.
  • Builds with VS2017 Ninja generator out of the box
  • string conversions are now locale aware
  • added unary incremement and decremement operators (++,--), as well as unary + operator.

Bug fixs:

  • fixed compilation error when iostream was disabled

v2.3.0

16 Sep 19:20
Compare
Choose a tag to compare

features:

  • 5x compile time improvement on MSVC.
  • 1.5x compile time improvement on GCC.
  • Even more dramatic reductions in compile time can be acheived if you opt-in to specific unit definitions instead of using all the library-defined types (which is the default value). Check out Enabling a subset of units to improve compilation time for instructions.
  • Adds std::cout support for units with no defined abbreviation (they show up as a combination of SI base units)
  • Support for std::numeric_limits of unit types.
  • Assignment operators for unit types: -=, +=, /=, *=.
  • Added min and max overloads for units types in units::math.
  • Added to_string function and abbreviation functions:
    auto len = 3.5_m;
    auto str = units::length::to_string(len);
    auto abv = units::length::abbreviation(len);
    
    std::cout << str;  // prints "3.5 m"
    std::cout << abv;  // prints "m"
  • Added units of data and data transfer: bits, bytes, bits_per_second, and bytes_per_second.
  • Adds value() member for accessing underlying type.
  • Adds value_type trait, as a synonym for underlying_type.
  • Adds definitions for Julian and Gregorian years.
  • Thanks to @dinocore1, units now supports cmake install and find_packages. From the pull request:
    # To have cmake install units library to a local 'install' directory:
    mkdir build
    cd build
    cmake -DCMAKE_INSTALL_PREFIX="install" ..
    cmake --build . --target install
    # The units library can then be used in some other cmake project using 
    # the standard 'find_package' command. Like so:
    find_package(units)

Bug fixes:

  • Fixed singualr name of siemen to be siemens (Thanks @Oxyd)
  • Fixed bug with cubrt operation (Thanks @PearCoding)
  • fixed constexpr relational operators bug
  • fixed exponential temperature conversions (Thanks @guarndt)

v2.3.0 RC 2

23 Feb 12:32
Compare
Choose a tag to compare
v2.3.0 RC 2 Pre-release
Pre-release

Improvements:

  • 512% compile time improvement on MSVC.
  • 165% compile time improvement on GCC.

Bug fixes:

  • fixed constexpr relational operators bug (#63)

Notes:

  • Retains VS2013 support
  • No documentation updates are provided in this release candidate.