Commit Graph
372 Commits
Author SHA1 Message Date
Johel Ernesto Guerrero Peña dcbadfe285 fix: commented out requirement 2020-06-17 15:31:22 +02:00
Johel Ernesto Guerrero Peña d6d17c6c6e refactor: nodiscard to type level 2020-06-17 15:31:22 +02:00
Johel Ernesto Guerrero Peña ef316a3dba revert: default-initializing with zero()
Refs: 636358f
2020-06-17 15:31:22 +02:00
Johel Ernesto Guerrero Peña fb88a441c9 fix(gcc9): wrong use of Concepts TS terse syntax 2020-06-17 15:31:22 +02:00
Johel Ernesto Guerrero Peña 5f21106a02 refactor: deduction guide to be unconstrained 2020-06-17 15:31:22 +02:00
Johel Ernesto Guerrero Peña 9e001b4b48 refactor: non-member operators to use terse syntax 2020-06-17 15:31:22 +02:00
Johel Ernesto Guerrero Peña ead398f812 fix: default-initialize with zero() 2020-06-17 15:31:22 +02:00
Johel Ernesto Guerrero Peña 764176dcad fix(gcc9): comparisons 2020-06-17 15:31:22 +02:00
Johel Ernesto Guerrero Peña 628ccde5f0 fix: use trailing requires clause 2020-06-17 15:31:22 +02:00
Johel Ernesto Guerrero Peña 75119eef3f feat: quantity_point 2020-06-17 15:31:22 +02:00
Mike Ford 1cf58f3796 added to fps length, mass, force and pressure 2020-06-17 14:56:32 +02:00
Mateusz Pusz fb3ab79401 Missing constraints added for prefixed_alias_unit 2020-06-16 19:15:40 +02:00
Mateusz Pusz 169e73e61b named_deduced_derived_unit renamed to named_deduced_unit 2020-06-16 19:15:09 +02:00
Mateusz Pusz 4a46f44618 Merge branch 'master' of github.com:mpusz/units 2020-06-16 17:12:57 +02:00
Mike Ford c97a438807 playing with named derived units to allow knots to be deduced from
nautical miles & hours but be called knot instead of mi(naut) / h
2020-06-16 15:14:46 +02:00
Mike Ford aa84dcb9ef added example and some more units to fps system 2020-06-16 15:14:46 +02:00
Mike Ford 5b9203d9d6 Added the "named_deduced_unit" type and more units to the fps system
The named_deduced_unit type can be used as a named type for child for child
deduced units
2020-06-16 15:14:46 +02:00
Mike Ford 8230a42cb0 added some units for the foot-pound-second system and the static tests 2020-06-16 15:14:46 +02:00
Mateusz Pusz fea072aeb5 warnings.cmake refactored 2020-05-29 10:07:01 +02:00
Mateusz Pusz 10f93b5386 Compilation on gcc-9 fixed 2020-05-28 20:45:15 +02:00
Mateusz Pusz 86b9177816 Specialize common_type to satisfy comparison concepts (resolves #113) 2020-05-28 20:19:05 +02:00
Mateusz Pusz a9627c60cd math.h function signatures refactored to use Quantity concept (thanks kwikius!) 2020-05-28 19:20:12 +02:00
Mateusz Pusz 77a94b6d73 Ccompilation error fixed on gcc-9 2020-05-28 13:37:20 +02:00
Ramzi Sabra caeae68326 removed redundant explicit keyword from default constructors 2020-05-28 11:25:15 +02:00
Ramzi Sabra 341b17e99a passed rep by reference; added constraints for rep 2020-05-28 11:25:15 +02:00
Ramzi Sabra 2f67372e17 refactored random distribution number wrapper and test 2020-05-28 11:25:15 +02:00
Ramzi Sabra 1ce7949cf5 added STL random number distributions wrappers 2020-05-28 11:25:15 +02:00
Mateusz Pusz 5dd9eaac87 Redundant constraints removed (resolves #109) 2020-05-24 22:49:53 +02:00
Andy Little 031da7df42 si angle header : fix wrong literal return type so now returns an angle rather than a length! 2020-05-21 11:05:39 +02:00
Andy Little f281e417e2 Experimental branch using angle as a dimension.
Added dim_angle, Angle concept etc.
Not really for merging, but fun to play with.(The main problem is that it doesnt conform to SI)
See https://github.com/mpusz/units/issues/99
Could try adding degrees etc in same way as non-si units
2020-05-20 21:34:04 +02:00
Mateusz Pusz 61fadb8ebc dim_velocity renamed to dim_speed 2020-05-14 16:00:38 +02:00
Mateusz Pusz bbd337ba35 base_dimension documentation updated 2020-05-14 13:55:34 +02:00
Mateusz Pusz e58c8054bc Doxygen documentation added 2020-05-13 15:33:29 +02:00
Mateusz Pusz cf7dab42c3 doxygen link resolution failure fixed 2020-05-11 12:38:50 +02:00
Mateusz Pusz 09e24114b0 Missing headers added to si.h 2020-05-10 22:40:28 +02:00
Mateusz Pusz ce301748dd Velocity renamed to Speed (resolves #103) 2020-05-10 17:31:47 +02:00
Mateusz Pusz e5b7487066 PT replaced with PF for PrefixFamily 2020-05-09 09:22:16 +02:00
Mateusz Pusz 56d0b6d4a2 Typo fixed 2020-05-08 22:57:21 +02:00
Mateusz Pusz 7e935a4108 Physical units put in the physical namespace (I am sorry) 2020-05-08 22:39:24 +02:00
Mateusz Pusz 771a9a1551 Documentation for alias_unit added 2020-05-08 21:19:33 +02:00
Mateusz Pusz a330f9a8f9 Constraints for prefixed_alias_unit added 2020-05-08 21:17:35 +02:00
Mateusz Pusz 31e76f03c1 prefix_family in prefixed_alias_unit fixed 2020-05-08 21:16:50 +02:00
Ramzi Sabra 2f6ecb113a removed base_prefix_family from unit classes, added PrefixFamily template argument to alias_unit 2020-05-08 10:41:38 +02:00
Ramzi Sabra 81b3ff9bdc added prefixed SI units for current 2020-05-08 10:41:38 +02:00
Ramzi Sabra 7b8ad8e37c changed hectare to an alias_unit 2020-05-08 10:41:38 +02:00
Ramzi Sabra 6f8bddc832 added more prefixed SI units; added alias_unit and prefixed_alias_unit types 2020-05-08 10:41:38 +02:00
Mateusz Pusz 202a2b0823 Missing dimension concepts tests added 2020-05-07 09:25:34 +02:00
Mateusz Pusz 1afdf99dad Conductance concept definition fixed 2020-05-07 09:05:26 +02:00
Mateusz Pusz d8ec48722a Template parameters constraints added for math.h 2020-05-06 18:20:55 +02:00
Mateusz Pusz ac0f10184c fabs() removed as abs() is enough 2020-05-06 18:17:49 +02:00