Const before function
- Irrelevant for functions. Only applies to class methods.
- It means the method does not modify the object. If you have a constant reference or pointer, you can only call constant methods.
thank you very much :)
You agree to website policy and terms of use
Good morning
Can someone explain me what the const before a function does?
does it make a difference if the function returns a fucntion or simple a variable?
I have never used const with functions till now.
But in the mql4 includes it's used a lot.
I'm just curious and want to learn more :)