[C++] distinguish reference/value
#2

I can always define two separate functions, like:

Код:
float GetFloatValueGiven(AMX * amx, cell * params, int i);
float GetFloatRefereceGiven(AMX * amx, cell * params, int i);
But I want my code to look nice. I would rather use one function for both cases. If only there is a way to distinguish whether float is passed by value or by reference.
Reply


Messages In This Thread
[C++] distinguish reference/value - by Baltazar - 01.08.2017, 12:45
Re: [C++] distinguish reference/value - by Baltazar - 01.08.2017, 17:25
Re: [C++] distinguish reference/value - by Baltazar - 02.08.2017, 17:55

Forum Jump:


Users browsing this thread: 1 Guest(s)