If there is for example a class that requires a pointer and a bool. For simplicity an int pointer will be used in examples, but the pointer type is
bool
int
Conform to those rules and it should be very portable.