add Chapter12

This commit is contained in:
Amar Mahmutbegovic
2024-10-21 05:39:20 +02:00
parent 87087b3bfb
commit a73a8f62f1
209 changed files with 303106 additions and 0 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));
}
};