I\'m working on C++, and had an error that I didn\'t know the exact reason. I\'ve found the solution, but still want to know why.
class Base { p
In the first case you attempt to pass a (non-const)reference to a temporary as argument to a function which is not possible. In the second case you pass a reference to an existing object which is perfectly valid.