Skip to content

Releases: nholthaus/units

v3.1.0-beta

21 Jan 15:42
Compare
Choose a tag to compare
v3.1.0-beta Pre-release
Pre-release

What's Changed

New Features:

  • Uplift to C++23
  • Alias template CTAD (meters length instead of meters<double> length)
  • ADL Improvements
  • SFINAE replaced by concepts where appropriate
  • NAN support
  • constexpr cmath functions
  • Many new units (jerk, radiometric units, etc)
  • unit constants (1.0 * km == kilometers(1.0))

Fixes:

  • ternary operator works as expected
  • cmake: Allow to use existing googletest package by @krf in #310
  • Fix compile error under GCC-12 by @krf in #309
  • MSVC-specific Empty Baseclass Optimization activation. by @Guillaume227 in #317
  • Fix mil definition by @ts826848 in #321
  • -Wshadow compilation warning fix - use -Wshadow for compiling tests by @Guillaume227 in #318
  • introduce UNIT_NO_LITERAL_SUPPORT directive by @Guillaume227 in #316

New Contributors

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

v2.3.4

17 Dec 23:40
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.3.3...v2.3.4

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