Commit Graph
227 Commits
Author SHA1 Message Date
Mateusz Pusz ae7aca5fa0 test: uncommented some already supported cases
Resolves #206
2021-05-11 20:12:46 +02:00
Mateusz Pusz 1783d243da fix: quantity modulo arithmetics fixed
Resolves #231
2021-05-11 15:03:04 +02:00
Mateusz Pusz 68203b6a9f test: additional tests for FPS unit text symbols added 2021-05-10 18:11:53 +02:00
Mateusz Pusz b894ee6558 refactor: 💥 got rid of a noble_derived_unit
Resolves #280
2021-05-10 18:03:47 +02:00
Mateusz Pusz 7ead50acfc refactor: derived_kind template parameters reordered to be compatible with a derived_unit
Resolves #229
2021-05-10 16:45:38 +02:00
Mateusz Pusz 8e88f06380 refactor: *deduced_unit renamed to *derived_unit 2021-05-10 15:56:48 +02:00
Mateusz Pusz 2c8c6c2e98 refactor: quantity cration helpers are not opt-out rather than opt-in
Resolves #277
2021-05-09 15:52:20 +02:00
Mateusz Pusz 6d39459cbc perf: rvalue references support added for constructors and getters
Resolves #275
2021-05-03 19:44:50 +02:00
Mateusz Pusz 46e1e5e932 refactor: US system renamed to USCS 2021-04-16 12:40:52 +02:00
Mateusz Pusz 70bff31d06 feat: quantity aliases support addded 2021-04-15 19:13:25 +02:00
Mateusz Pusz b982921d27 refactor: References are now guarded UNITS_REFERENCES with (ON by default) + examples duplicated to subdirectories
Now References can be disabled to meassure a compile time impact. Also the same examples are now provided in two subdirectories to be able to easily compare the pros and cons of every quantity construction technique.
2021-04-06 15:57:28 +02:00
Mateusz Pusz c3659dbb47 refactor: UNITS_UDLS renamed to UNITS_LITERALS
Also now the existence of the preprocessor flag is enough to trigger the feature (`#ifdef` instead of `#if`)
2021-04-06 13:33:27 +02:00
Mateusz Pusz dfd209ed14 fix: femtotonne enabled 2021-04-02 18:57:17 +02:00
Mateusz Pusz 1a5b4fc85e refactor: UDLs support switched off by default 2021-04-02 18:56:28 +02:00
Mateusz Pusz 309da80c32 refactor: unit_text.h header include moved to text-related targets 2021-03-31 12:25:26 +02:00
Mateusz Pusz 441db47928 fix: MSVC Release build fixed + pragmas usage refactored 2021-03-30 20:00:23 +02:00
Mateusz Pusz 37cfc53d1d refactor: IWYU applied to the source files
`alternative_namespaces` examples left out as I consider them a subject for removal in the nearest future.
2021-03-30 13:21:05 +02:00
Mateusz Pusz fc7b0e44e2 feat: 💥 !data system renamed to isq::iec80000 (quantity names renamed too)
Relates to #253
2021-03-19 23:04:52 +01:00
Mateusz Pusz 88e642ec74 refactor: QuantityValue concept renamed to Representation 2021-03-19 07:53:18 +01:00
Mateusz Pusz 6c4dc95897 Merge branch 'add_si_prefix_bit' of https://github.com/go2sh/units into go2sh-add_si_prefix_bit 2021-03-19 07:24:53 +01:00
Mateusz Pusz 901b09fd52 refactor: quantity::count() renamed to quantity::number()
Resolves #259
2021-03-19 06:47:37 +01:00
Johel Ernesto Guerrero Peña f0cfc14b83 refactor: remove operator/(Rep, reference)
Addresses https://github.com/mpusz/units/pull/261#discussion_r597289047.
2021-03-19 06:31:12 +01:00
Johel Ernesto Guerrero Peña c61b8643d7 refactor(test): rename references.cpp to references_test.cpp
Addresses https://github.com/mpusz/units/pull/261#discussion_r597217632.
2021-03-18 22:37:25 +01:00
Johel Ernesto Guerrero Peña ed94ba347f refactor(test): rename unit_constants.cpp to references.cpp
Addresses https://github.com/mpusz/units/pull/261#discussion_r597137577.
2021-03-18 22:37:25 +01:00
Johel Ernesto Guerrero Peña 0b87e7c99c refactor!: require explicit number for references
Addresses:
- https://github.com/mpusz/units/pull/261#discussion_r596651065
- https://github.com/mpusz/units/pull/261#discussion_r596664550
- https://github.com/mpusz/units/pull/261#discussion_r597132294
2021-03-18 22:37:25 +01:00
Johel Ernesto Guerrero Peña 018c5837f9 refactor: rename unit_constants to references
Addresses https://github.com/mpusz/units/pull/261#discussion_r596663522.
2021-03-18 22:37:25 +01:00
Johel Ernesto Guerrero Peña 9a520edfe9 refactor!: replace one_rep with reference<D, U> 2021-03-18 22:37:25 +01:00
Mateusz Pusz 221883bb25 build: core library and each system separated to dedicated CMake targets
Refers to #249
2021-03-16 23:05:45 +01:00
Mateusz Pusz bbbb77286c refactor: physical replaced with isq
Refers to #249
2021-03-16 12:03:25 +01:00
Mateusz Pusz 23720d055e refactor: Refactored the library file tree
Resolves #249
2021-03-16 09:32:28 +01:00
Mateusz Pusz 5c94a40906 build: COMP_XXX renamed to UNITS_COMP_XXX 2021-03-15 21:13:21 +01:00
Mateusz Pusz 625f452daa build: libc++ support added 2021-03-15 21:11:26 +01:00
Mateusz Pusz 53f0b5a4e5 test: unused variable in Release disabled with [[maybe_unused]] 2021-03-15 18:48:18 +01:00
Johel Ernesto Guerrero Peña 94eb477f02 refactor: apply comments 2021-03-15 15:19:50 +01:00
Johel Ernesto Guerrero Peña f228ddfd77 test: fix misc Clang warnings 2021-03-15 14:26:46 +01:00
Johel Ernesto Guerrero Peña 1fec222ad3 test: fix si_cgs_test.cpp 2021-03-15 14:26:21 +01:00
Johel Ernesto Guerrero Peña 3002c5673d test: compile quantity_test.cpp with -DUNITS_DOWNCAST_MODE=0 2021-03-15 14:24:26 +01:00
Mateusz Pusz 7c9e35dcd6 refactor: explicit usage unified accross the library 2021-03-13 19:55:18 +01:00
Mateusz Pusz b5f1eb33ac feat: energy_density and radioactivity definitions added
Although, they are disabled because of downcasting issues.
2021-03-13 19:39:59 +01:00
Johel Ernesto Guerrero Peña 017183653d feat: full-on dimensional analysis between related quantity kinds 2021-02-21 00:17:03 +01:00
Johel Ernesto Guerrero Peña 8d6d43b32d feat: quantity point-like support 2021-02-17 19:40:52 +01:00
Mateusz Pusz 02ea4825e8 docs: Compilation warnings handling refactored 2021-02-17 15:45:30 +01:00
Johel Ernesto Guerrero Peña 00d182e133 fix: operators to behave like the underlying type's 2021-02-16 19:25:13 +01:00
Mateusz Pusz ada3c60ee9 refactor: QuantityLike concept improved 2021-02-16 19:18:14 +01:00
Mateusz Pusz 79025fff3d fix: Implicit conversion in a downcast_result fixed 2021-02-15 20:08:17 +01:00
Johel Ernesto Guerrero Peña 6bf09aa646 feat: quantity_kind and quantity_point_kind 2021-02-15 19:31:08 +01:00
Johel Ernesto Guerrero Peña a168f49b66 fix: lack of compound assignment from dimensionless<one> 2021-02-15 17:07:55 +01:00
Mateusz Pusz 8f04bd9cfe build: mp::units CMake target was a bad idea -> mp-units::mp-units is back 2021-02-15 17:06:09 +01:00
Johel Ernesto Guerrero Peña efeacca9ee fix: restore user-warnings within the library implementation 2021-02-06 21:20:31 +01:00
Johel Ernesto Guerrero Peña 98c15a2356 fix: quantity_cast between different, equivalent dimensions 2021-01-18 21:27:16 +01:00