rename chapters
This commit is contained in:
11
Chapter16/fsm/util/src/units.cpp
Normal file
11
Chapter16/fsm/util/src/units.cpp
Normal 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));
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user