Consider a following piece of code which is essentially an example of Meyer's singleton (hopefully)
static const std::string& foo() // Line 1
{
static std::string str("foo");
return str;
}
Is static keyword mentioned in the Line 1 meaningless ? If so why ?