Hey all, I was just wondering why this won't compile.
i mean, why not? what would be the problem if c changed? it only compiles if its constant.Code:int a=5; const int &b=a; int &c=b; //uh oh! why can't you reference a const ref?
thanks for the help