L
Leslaw Bieniasz
Cracow, 13.03.2008
Hi,
Assuming that I want to pass a reference to a function, and
make sure that the function will not make any changes to the object
passed, is it necessary to declare two "const's" or only one, i.e.
for example:
void fun(const Type& const x);
or
void fun(const Type& x);
Also, is there a difference between
const Type& const x
and
const Type const & x
L. Bieniasz
Hi,
Assuming that I want to pass a reference to a function, and
make sure that the function will not make any changes to the object
passed, is it necessary to declare two "const's" or only one, i.e.
for example:
void fun(const Type& const x);
or
void fun(const Type& x);
Also, is there a difference between
const Type& const x
and
const Type const & x
L. Bieniasz