You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**This repository only contains the generated source files.**
8
8
**If you want to report a bug or change something check the [generator repository](https:://github.com/noah1510/unit-system-generator).**
9
9
10
-
11
-
This is an implementation of the SI unit system for C++17 development.
10
+
This is an implementation of the SI unit system for C++14 development.
12
11
All units, combinations, literals and constants are generated from templates.
13
12
If you feel something is missing open an issue or a pull request on the [generator repository](https:://github.com/noah1510/unit-system-generator).
14
13
@@ -42,7 +41,6 @@ Just use the wrapdb to download the version you need, and then you can add the l
42
41
43
42
## Units that are currently supported
44
43
45
-
* unit_t -> a unit template that is the basis of all the units
46
44
* time_si -> time with seconds as base unit
47
45
* length -> length with meter as base unit
48
46
* mass -> mass with kg as base unit
@@ -60,6 +58,21 @@ Just use the wrapdb to download the version you need, and then you can add the l
60
58
61
59
## Upgrade Instructions
62
60
61
+
### from version 0.7.x to 0.8.x
62
+
63
+
Most code should still work.
64
+
65
+
However, there are two major changes.
66
+
The first one is that there is only one header now.
67
+
All declarations are now in the `unit_system.hpp` header.
68
+
If you only included some parts of the library you have to change that.
69
+
70
+
The second major change is the removal of the unit_t template class.
71
+
This means all custom types are now broken.
72
+
This is done to simplify the code and make it easier to maintain.
73
+
Now all units have to be created by using the generator script.
74
+
If you want to add a new unit you have to add it to the generator script and run it.
0 commit comments