A strongly typed alias is actually a new type, so just use a simple structure:
struct euro {
uint amount;
}
If you want it to be implicitly converted to and from uint, you can also add alias amount this;, but this makes typing easier, so you might not want to.
source
share