M
mandydhaliwal
Hi Guys,
I was going through a product's source code. They never use const
function arguments with default value.
for instance
Never noticed following type of declaration
foo ( const int param1, const bool = false) const;
instead
of this
foo ( const int param1, bool = false) const; is used widely.
I there any drawback of using default argument with const keyword?
I was going through a product's source code. They never use const
function arguments with default value.
for instance
Never noticed following type of declaration
foo ( const int param1, const bool = false) const;
instead
of this
foo ( const int param1, bool = false) const; is used widely.
I there any drawback of using default argument with const keyword?