uint is not a standardised type in C++. It should be replaced with unsigned int.
uint
unsigned int
On macOS compilation is failing with current Xcode with the error
error: 'uint' was not declared in this scope