refactor: file tree with systems defninitions refactored to limit ODR issues

Relates to #32 as with this commit we created something like modules for derived quantities
This commit is contained in:
Mateusz Pusz
2020-09-11 18:11:25 +02:00
parent 2c36f21716
commit 2a56438f1c
207 changed files with 965 additions and 456 deletions
+2 -1
View File
@@ -20,7 +20,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
#include <units/physical/si/speed.h>
#include <units/physical/si/si.h>
#include <iostream>
namespace {
@@ -40,6 +40,7 @@ void example()
Time auto t1 = 10_q_s;
Speed auto v1 = avg_speed(d1, t1);
// TODO: check if below is still true after adding whole SI module
auto temp1 = v1 * 50_q_m; // produces intermediate unknown dimension with 'unknown_coherent_unit' as its 'coherent_unit'
Speed auto v2 = temp1 / 100_q_m; // back to known dimensions again
Length auto d2 = v2 * 60_q_s;