Usually, parameter values are copied when being passed on. Using a reference may save memory, especially for big structs. However, in this case:
void foo( int parameter = 7 );
void bar( const int& parameter = 7 );
in the second declaration, what exactly will it do when the default value is used? What happens when a constant value is used for a reference parameter?
void foo( const int& parameter ) { }
...
foo( 7 );
is there any difference in efficiency between a reference and a copied value when a contant value is used?