Mateusz Pusz
fb9f288c56
feat: quantity_point construction from quantity made private + make_quantity_point added
2023-08-23 12:49:14 +02:00
Mateusz Pusz
ed279c43ab
feat: quantity_point CTAD from Quantity removed
2023-08-23 11:53:49 +02:00
Mateusz Pusz
7594048850
fix: relative_point_origin::quantity_spec setting fixed
2023-08-23 11:42:43 +02:00
Mateusz Pusz
71981172c3
feat: quantity_point does not take a default origin anymore + common_qs logic removed from the binary operators
2023-08-23 10:41:37 +02:00
Mateusz Pusz
d8b687d6a9
feat: absolute_zero and ice_point point origins added to SI
2023-08-18 18:51:58 +02:00
Mateusz Pusz
07ce64d6e7
refactor: relative() renamed to quantity_from_origin()
...
Resolves #479
2023-08-18 18:49:04 +02:00
Mateusz Pusz
752408449f
feat: PointOrigin arithmetics support added
2023-08-18 18:35:41 +02:00
Mateusz Pusz
110986ee1f
feat: quantity_cast<kind_of_qs>(associated_unit) now returns the bare unit as a reference
2023-08-18 11:11:29 +02:00
Mateusz Pusz
ef39b8c4c7
feat: kind_of_qs[unit] now returns a bare unit as a reference
2023-08-18 11:01:40 +02:00
Mateusz Pusz
a3cf3f4087
feat: DimensionOf and QuantitySpecOf added and reused in ReferenceOf concept
2023-08-18 10:58:25 +02:00
Mateusz Pusz
af26c48795
feat: now "7 days" will be created for std::chrono::weeks instead of a quantity in seconds
2023-08-15 11:22:23 +02:00
Mateusz Pusz
059c4f4eea
fix: quantity construction from std::chrono types fixed
2023-08-15 11:17:52 +02:00
Mateusz Pusz
eb28aa8f8c
fix: point_from() now returns a point with a proper representation type
2023-08-15 11:15:20 +02:00
Mateusz Pusz
0c69747f15
refactor: quantity_point compile-time optimizations
2023-08-03 11:32:49 +02:00
Mateusz Pusz
3628e99aaa
feat: CTAD for quantity_point can now deduce point_origin
2023-08-03 11:31:58 +02:00
Mateusz Pusz
dd9fd761a3
refactor: now we have only one quantity_point converting constructor
2023-08-02 11:21:09 +02:00
Mateusz Pusz
ccdf5d319a
feat: point_from extended with the case of the same origin
2023-08-02 11:20:32 +02:00
Mateusz Pusz
c289bbcfdb
refactor: parent_origin renamed to quantity_point in relative_point_origin
2023-08-02 08:55:29 +02:00
Mateusz Pusz
1328ae4245
feat: point_from added to quantity_point
2023-08-01 22:06:15 +02:00
Mateusz Pusz
0292048252
refactor: quantity_point converting constructor simplified
2023-08-01 22:04:46 +02:00
Mateusz Pusz
4c2e288017
feat: explicit this interfaces added for getters in quantity and quantity_point
2023-08-01 17:26:00 +02:00
Mateusz Pusz
5015d7c3e3
fix: explicit this interfaces fixed for quantity_spec
2023-08-01 17:25:15 +02:00
Mateusz Pusz
b19bf0761c
feat: relative_point_origin support added
...
Relates to #414
2023-08-01 17:24:01 +02:00
Mateusz Pusz
c12bf20703
feat: lvalue reference overload of relative() added
...
Relates to #476
2023-08-01 15:53:45 +02:00
Mateusz Pusz
c12b3b1ccc
feat: lvalue reference overload of number() added
...
Resolves #476
2023-08-01 15:51:49 +02:00
Mateusz Pusz
acfbd07bb7
docs: unit_symbol_solidus comments changed to use unicode
2023-08-01 12:40:28 +02:00
Mateusz Pusz
ea6325a5eb
refactor: some parameterized quantity specs renamed
...
Relates to #475
2023-08-01 12:38:29 +02:00
Mateusz Pusz
092e1569a7
feat: heat is now a quantity of energy kind
...
ISO 8000-1 says: "The quantities heat, kinetic energy, and potential energy are generally considered to be quantities of the same kind, namely, of the kind of quantity called energy."
2023-08-01 12:36:27 +02:00
Mateusz Pusz
2ddbb365f3
feat: QuantityPointOf concept now has a special case for absolute_point_origin
2023-08-01 11:59:08 +02:00
Mateusz Pusz
f18f3c24f8
feat: quantity_point CTAD for Rep and QuantityLike removed
2023-08-01 11:58:21 +02:00
Mateusz Pusz
613bbca620
fix: quantity_point now uses absolute() instead of relative() for comparisons
2023-08-01 11:57:20 +02:00
Mateusz Pusz
823fe26a13
feat: quantity_point binary operators are now constrained to prevent weakening of the origin
2023-08-01 11:55:39 +02:00
Mateusz Pusz
1e81069d53
feat: absolute_point_origin convertibility removed
2023-08-01 11:53:50 +02:00
Mateusz Pusz
5d73cd0730
feat: dimensionless quantities with a unit one are not special anymore
2023-07-10 16:53:49 +02:00
Mateusz Pusz
9e42e1faca
feat: quantity_point can now be constructed faster from another one if they share the same point_origin
2023-07-07 09:36:08 +02:00
Mateusz Pusz
7b47b2fe57
fix: text output of 8-bit integers fixed ( resolves #470 )
2023-07-05 11:24:53 +02:00
Mateusz Pusz
dfaf293774
fix: quantity_point converting constructor fixed to account for different offsets of point origins cntd...
2023-06-30 17:35:32 +01:00
Mateusz Pusz
66a24e47c7
fix: quantity_point converting constructor fixed to account for different offsets of point origins
2023-06-30 17:34:47 +01:00
Mateusz Pusz
d820cfe6cf
feat: zero() static member function added to quantity_point
2023-06-30 17:28:01 +01:00
Mateusz Pusz
b9802e5df1
fix: conversion between quantity points fixed
2023-06-30 17:27:10 +01:00
Mateusz Pusz
52ce2b21f7
refactor: iostream.h renamed to ostream.h
2023-06-23 15:03:04 +02:00
Mateusz Pusz
90c8cbce25
refactor: unit_can_be_prefixed trait refactored
2023-06-22 18:15:02 +02:00
Mateusz Pusz
6201109c60
refactor: TYPENAME and CONSTEVAL macros got MP_UNITS_ prefix
2023-06-21 18:07:55 +02:00
Mateusz Pusz
ba1f58af76
refactor: All the macros refactored to have MP_UNITS_ prefix
2023-06-21 18:05:21 +02:00
Mateusz Pusz
dde5bcab7e
Merge branch 'master' of github.com:mpusz/units
2023-06-19 14:02:39 +02:00
Mateusz Pusz
d9697afd67
feat: non-SI units got their own namespace non_si
2023-06-19 14:02:31 +02:00
Mateusz Pusz
7fc88facd6
feat: arcminute and arcsecond support added
2023-06-19 14:01:36 +02:00
Mateusz Pusz
3d20dfef91
refactor: unit_symbol_separator::dot renamed to half_high_dot
2023-06-18 10:28:51 +02:00
Mateusz Pusz
faa4c203aa
fix: treat_as_floating_point and Scalable fixed for the case where the type has both value_type and element_type
2023-06-17 06:44:20 +03:00
Mateusz Pusz
ad7f897600
fix: constexpr evaluation maximum step limit fixed for clang for proton_mass
2023-06-16 16:24:53 +03:00