Extracted from cppreference.com:
A name that denotes object, reference, function, type, template, namespace, or value, may have linkage.
What is "the name of a value"? Can anybody provide an example where a name of a value is not a name of an object?
One example of something close to this would be an
enum
's values, although technically they are named constants:In this case, the enum
example
has names that are values whereONE
corresponds to 1, andTWO
corresponds to 2.These aren't just variables since you can't assign to them.
Lastly, according to the link you posted, the enumerators have external linkage.