D
Daniel Oberhoff
Hi,
Can someone more proficient in the details of the c++ type system
please tell me how I can instantiate the for constesses of references
that I think should be possible:
1. non-constant reference to non-constant value
2. constant reference to non-constant value
3. non-constant reference to constant value
4. constant reference to constant value
const T & seems to behave like the latter, and I could not find any
good reference on this. I would like to be able to use references to
non-const rvalues.
Can someone more proficient in the details of the c++ type system
please tell me how I can instantiate the for constesses of references
that I think should be possible:
1. non-constant reference to non-constant value
2. constant reference to non-constant value
3. non-constant reference to constant value
4. constant reference to constant value
const T & seems to behave like the latter, and I could not find any
good reference on this. I would like to be able to use references to
non-const rvalues.