No error

 

Why is there no error reported for this function by the editor ?

            template <typename X> 
       bool refill(X &data[],bool empty_existing=true,bool add_on_top=false,bool check_minmax=true,bool format_now=true){
            
            }

Thank you

 
Lorentzos Roussos: Why is there no error reported for this function by the editor?

What error were you expecting? Do you mean this error?

'}' - not all control paths return a value
It only throws the error if you actually use the function in your code. Otherwise the code is never generated and hence no error is reported.
 
Fernando Carreiro #:

What error were you expecting? Do you mean this error?

It only throws the error if you actually use the function in your code. Otherwise the code is never generated and hence no error is reported.

yeah