struct typeA
{
double fieldA;
}
struct typeB
{
double fieldA;
double fieldB;
}
void do_stuff(typeA or typeB input)
{
input.fieldA // I will only use fieldA and will never use fieldB
}
It is performance sensitive so I don't want to convert it into a common type first.