I have some immutable global objects like so:
const Vehicle Car = ...;
const Vehicle Truck = ...;
...
I need to make "aliases" to these objects, i.e., additional names which refer to the same object.
This seems to work:
const Vehicle& Camion = Truck;
Is it allowed and will it blow up in my face somehow? Will using Camion
be the same as using Truck
, including the object address?