Relative Content

Tag Archive for c++c++11

Reference to a string literal

I read that string literals have static storage duration, does that mean that references to them are always valid? For example, is the following code safe: