update lookup table example

This commit is contained in:
Amar Mahmutbegovic
2024-09-23 00:17:56 +02:00
parent 6090eba6d3
commit 87087b3bfb
11 changed files with 301 additions and 72 deletions

View File

@@ -0,0 +1,11 @@
#include <units.hpp>
namespace units {
voltage operator""_V(long double volts) {
return voltage(static_cast<float>(volts));
}
resistance operator""_Ohm(long double ohms) {
return resistance(static_cast<float>(ohms));
}
};