I have to name windows with constant literal strings. The names will be referenced everywhere so I need to cache them with variables. My question is
Do I need to declare the variables as const references as follows
const string& srcWnd = "Source Window";
instead of
const string srcWnd = "Source Window";
?
Is there any difference?