OpenTTD Source
20241108-master-g80f628063a
|
Mix-in which makes the new Typedef behave more like an integer. More...
#include <strong_typedef_type.hpp>
Data Structures | |
struct | mixin |
Mix-in which makes the new Typedef behave more like an integer.
This means you can add and subtract from it.
Operators like divide, multiply and module are explicitly denied, as that often makes little sense for the new type. If you want to do these actions on the new Typedef, you are better off first casting it to the base type.
Definition at line 52 of file strong_typedef_type.hpp.