Heinz:

template makeId(char[4] id)
{
        const makeId = id[0] << 24 | id[1] << 16 | id[2] << 8 | id[3];
}

const kPIHostBlendModeSignature = makeId!("8BIM");

Generally it's more descriptive to use enum (or even a CT function):

template makeId(char[4] id)
{
enum makeId = (id[0] << 24) | (id[1] << 16) | (id[2] << 8) | id[3];
}

enum PIPowerPCCarbonCodeProperty = makeId!"ppcb";

Bye,
bearophile

Reply via email to