Currently pcp::instance_id_type is int.
In typical PMDA flow, instance IDs are first assigned to the PCP's pmdaInstid::i_inst (via the pmdaIndom table) as int.
However, PCP's pmdaFetchCallBack signature uses unsigned int to supply those same instance IDs back to the PMDA.
So it appears that there's no technically-right signedness to use for instance IDs. Instead, we should choose a signedness that provides the PMDA++ users the most intuitive behaviour.
Of course, testing the high-bit cases would be the right way to start.
Currently
pcp::instance_id_typeisint.In typical PMDA flow, instance IDs are first assigned to the PCP's
pmdaInstid::i_inst(via thepmdaIndomtable) asint.However, PCP's
pmdaFetchCallBacksignature usesunsigned intto supply those same instance IDs back to the PMDA.So it appears that there's no technically-right signedness to use for instance IDs. Instead, we should choose a signedness that provides the PMDA++ users the most intuitive behaviour.
Of course, testing the high-bit cases would be the right way to start.