subsurface/smtk-import
Berthold Stoeger 12ca172a9e core: add CRTP base class to unit types
The goal here is to add general addition and scalar multiplication
functions to the unit types.

Thereto, we need a CRTP
(https://en.wikipedia.org/wiki/Curiously_recurring_template_pattern)
base class.

However, this breaks compound initialization, so we have to use
named initializers:
	weight_t { 2000 } -> weight_t { .grams = 2000 }
The good thing is that this is exactly how these classes were
supposed to be used: make the unit explicit!

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-09-11 10:23:07 +02:00
..
cmake/Modules Windows: Fix smtk-import Build. 2024-08-17 23:33:58 +12:00
CMakeLists.txt import: compile smartrak.cpp as C++ 2024-04-23 07:47:11 +07:00
smartrak.cpp core: add CRTP base class to unit types 2024-09-11 10:23:07 +02:00
smrtk2ssrfc_window.cpp core: use std::string in error_callback 2024-08-13 19:28:30 +02:00
smrtk2ssrfc_window.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
smrtk2ssrfc_window.ui Use icons relative path. 2017-11-30 23:14:46 -08:00
smtk2ssrf.desktop smtk-import: Add smtk2ssrf.desktop to sources 2018-02-24 13:42:01 -08:00
smtk_standalone.cpp Replace qDebug() by report_info() in smtk-import 2024-04-23 07:47:11 +07:00