Releases: nholthaus/units
Releases · nholthaus/units
v3.1.0-beta
What's Changed
New Features:
- Uplift to C++23
- Alias template CTAD (
meters length
instead ofmeters<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
- @krf made their first contribution in #310
- @Guillaume227 made their first contribution in #317
Full Changelog: v3.0.0.beta.2...v3.1.0-beta
v2.3.4
What's Changed
- Updated CMake policy version to resolve deprecation warning. by @joe-barnier in #337
- Added namePlural to UNIT_ADD_NAME by @raulcalvo in #338
- Some numeric_limits and numeric helper functions were missing by @siposcsaba89 in #331
- Add #undef PI by @codereptile in #336
- Avoid pascal macro conflict when working on mingw by @raghunandannm in #325
- Using intmax_t instead of size_t fixes narrowing conversion on 32bit by @pmaciol in #322
- Add jerk and RPS units by @AhmedAredah in #327
- Add inch_of_mercury by @adamdoda in #326
New Contributors
- @joe-barnier made their first contribution in #337
- @raulcalvo made their first contribution in #338
- @siposcsaba89 made their first contribution in #331
- @codereptile made their first contribution in #336
- @raghunandannm made their first contribution in #325
- @pmaciol made their first contribution in #322
- @AhmedAredah made their first contribution in #327
- @adamdoda made their first contribution in #326
Full Changelog: v2.3.3...v2.3.4
v3.0.0 Beta 2
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
v3.0.0 Beta
- added support for nlohmann json
- NaN support
- add
Gal
unit of acceleration - improved stream operators
v2.3.2
v3.0.0 Alpha 3
Post name refactor
v3.0.0 Alpha 2
Many new features of v3.x implemeneted, including first-class support for integer units
v3.0.0.alpha
Preview of version 3.0.0 featuring user-defined variadic dimensions.
No documentation updates yet.
v2.3.1
New in v2.3.1
This version removes support for the Visual Studio 2013 compiler.
Features:
- units now include constexpr
name()
andabbreviation()
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