>>225
オーバーロードだとこんな感じ?
戻り値にはできなくなるけど

void GetValue(long & dest, int idx) ;
void GetValue(float & dest, int idx) ;

//使い方
long x ;
GetValue(x, 0) ;
float f ;
GetValue(f, 1) ;