サンプル

int function(int &a, int &b){
a++;   
return b;
}

ソリューション
ビルトイン・タイプは、変更されない場合は値で受け渡します。

int function(int &a, int b){
a++;   
return b;
}