static_string_view
This is like std::string_view, but points to a string with static lifetime (e.g. a string literal). In other words, the pointed-to-string is guaranteed to remain valid. This allows to store just a reference to the string instead of having to copy it into e.g. a std::string object.
The intention is that objects of this class can only be constructed from string-literals. For example constructing from std::string, std::string_view or 'const char*' will result in compile errors. (See unittest for more details).
In some (rare?) cases you may want something like this, but string literals are too restrictive. Using the 'make_string_storage()' function below might be a solution. But then the programmer takes responsibility of correctly managing lifetimes (then the c++ compiler doesn't help anymore).
Definition at line 27 of file static_string_view.hh.