generalized lvalues

Andrew Pinski pinskia@physics.uc.edu
Thu Nov 18 04:01:00 GMT 2004


On Nov 17, 2004, at 10:47 PM, Matt Austern wrote:

>  1. It broke valid C++ programs.  If we overload a function on 
> constness, like foo(int&) and foo(const int&), then invoking it as 
> foo((int) x) is required to call the const version.  Generalized 
> lvalues made us choose the latter.

If it broke it please file a bug and don't complain that we broke it.

-- Pinski



More information about the Gcc mailing list